diff --git a/changelog/entries/unreleased/feature/5442_added_support_for_multiple_examples_in_formula_expression_he.json b/changelog/entries/unreleased/feature/5442_added_support_for_multiple_examples_in_formula_expression_he.json new file mode 100644 index 0000000000..c32d1e7c5c --- /dev/null +++ b/changelog/entries/unreleased/feature/5442_added_support_for_multiple_examples_in_formula_expression_he.json @@ -0,0 +1,9 @@ +{ + "type": "feature", + "message": "Added support for multiple examples in formula expression help tooltip.", + "issue_origin": "github", + "issue_number": 5442, + "domain": "core", + "bullet_points": [], + "created_at": "2026-09-03" +} diff --git a/web-frontend/locales/en.json b/web-frontend/locales/en.json index 15349a6269..1f7a5d8fdf 100644 --- a/web-frontend/locales/en.json +++ b/web-frontend/locales/en.json @@ -686,6 +686,7 @@ "minuteDescription": "Returns the minute from the date time argument.", "secondDescription": "Returns the second from the date time argument.", "todayDescription": "Returns the current date.", + "nowDescription": "Returns the current date and time.", "getPropertyDescription": "Returns the property from the object.", "randomIntDescription": "Returns a random integer from the range specified by the arguments.", "randomFloatDescription": "Returns a random float from the range specified by the arguments.", diff --git a/web-frontend/modules/core/assets/scss/components/node_help_tooltip.scss b/web-frontend/modules/core/assets/scss/components/node_help_tooltip.scss index 58e905d97e..89875600cb 100644 --- a/web-frontend/modules/core/assets/scss/components/node_help_tooltip.scss +++ b/web-frontend/modules/core/assets/scss/components/node_help_tooltip.scss @@ -42,6 +42,75 @@ @extend %mb-16; } + + &__examples { + display: flex; + flex-direction: column; + gap: 12px; + + // Fits three examples, including the extra padding of the clickable + // variant. Longer lists scroll. + max-height: 260px; + overflow-y: auto; + + // Clickable examples carry their own padding so the hover background can + // bleed past the snippet. Offset the container by the same amount so the + // snippets stay aligned with the label above. + &--clickable { + margin: 0 -6px; + padding: 0 6px; + } + } + + &__example-footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + margin-top: 12px; + font-size: 12px; + color: $palette-neutral-1100; + } + + &__example-result { + min-width: 0; + overflow-wrap: anywhere; + } + + // Signals that clicking the example inserts it into the formula. Pushed to + // the far end of the footer so it sits opposite the result, and stays there + // when the example has no result. + &__example-insert-icon { + margin-left: auto; + flex-shrink: 0; + font-size: 12px; + color: $palette-neutral-700; + } + + &__example--clickable { + cursor: pointer; + padding: 6px; + + @include rounded($rounded); + + &:hover { + background: $palette-neutral-200; + + .node-help-tooltip__example-insert-icon { + color: $palette-neutral-1200; + } + } + + .node-help-tooltip__example-code { + pointer-events: none; + } + } + + &__examples-hint { + margin: 8px 0 0; + font-size: 11px; + color: $palette-neutral-700; + } } .node-help-tooltip-context { diff --git a/web-frontend/modules/core/components/formula/FormulaInputExplorerContext.vue b/web-frontend/modules/core/components/formula/FormulaInputExplorerContext.vue index a74b027240..1418801465 100644 --- a/web-frontend/modules/core/components/formula/FormulaInputExplorerContext.vue +++ b/web-frontend/modules/core/components/formula/FormulaInputExplorerContext.vue @@ -15,6 +15,7 @@ :loading="loading" @node-selected="$emit('node-selected', $event)" @node-unselected="$emit('node-unselected')" + @example-click="$emit('example-click', $event)" />
+
{{ node.description }}
-+ {{ $t('nodeHelpTooltip.clickToInsert') }} +
+{{ value }}',
+}
+
+// Must match the delays used by `NodeExplorerContent`.
+const SHOW_DELAY = 300
+const HIDE_DELAY = 250
+
+function functionNode(overrides = {}) {
+ return {
+ name: 'upper',
+ type: 'function',
+ description: 'Converts a string to uppercase.',
+ icon: 'iconoir-text',
+ identifier: null,
+ signature: null,
+ highlightingColor: 'blue',
+ examples: [
+ { formula: "upper('hello')", result: "'HELLO'" },
+ { formula: "upper('MiXeD')", result: "'MIXED'" },
+ ],
+ ...overrides,
+ }
+}
+
+describe('NodeExplorerContent help tooltip', () => {
+ let testApp = null
+
+ beforeEach(() => {
+ testApp = new TestApp()
+ })
+
+ afterEach(async () => {
+ vi.useRealTimers()
+ await testApp.afterEach()
+ })
+
+ async function mountContent(node, props = {}) {
+ const wrapper = await testApp.mount(NodeExplorerContent, {
+ props: {
+ node,
+ depth: 1,
+ path: node.name,
+ searchPath: node.name,
+ openNodes: new Set(),
+ ...props,
+ },
+ global: {
+ provide: { getFormulaMode: () => 'advanced', nodesHierarchy: [] },
+ stubs: { FormulaInputField: FormulaInputFieldStub },
+ },
+ })
+ // Only the hover timers must be fake; mounting itself runs on real ones.
+ vi.useFakeTimers()
+ return wrapper
+ }
+
+ /**
+ * Lets the tooltip Context finish showing/hiding: `show()` awaits a tick
+ * before positioning and the class change needs another render.
+ */
+ async function settle() {
+ for (let i = 0; i < 3; i++) {
+ await nextTick()
+ }
+ }
+
+ function tooltipVisible(wrapper) {
+ const context = wrapper.find('.node-help-tooltip-context')
+ return context.exists() && !context.classes('visibility-hidden')
+ }
+
+ async function hoverRow(wrapper, index = 0) {
+ await wrapper
+ .findAll('.node-explorer-content__content')
+ [index].trigger('mouseenter')
+ vi.advanceTimersByTime(SHOW_DELAY)
+ await settle()
+ }
+
+ test('shows the tooltip after hovering a function node for a moment', async () => {
+ const wrapper = await mountContent(functionNode())
+ const row = wrapper.find('.node-explorer-content__content')
+
+ await row.trigger('mouseenter')
+ vi.advanceTimersByTime(SHOW_DELAY - 1)
+ await settle()
+ expect(tooltipVisible(wrapper)).toBe(false)
+
+ vi.advanceTimersByTime(1)
+ await settle()
+ expect(tooltipVisible(wrapper)).toBe(true)
+ expect(wrapper.findAll('.node-help-tooltip__example')).toHaveLength(2)
+ expect(
+ wrapper.find('.node-help-tooltip__examples--clickable').exists()
+ ).toBe(true)
+ })
+
+ test('shows a description-only tooltip for a node without examples', async () => {
+ const wrapper = await mountContent(functionNode({ examples: null }))
+
+ await hoverRow(wrapper)
+
+ expect(tooltipVisible(wrapper)).toBe(true)
+ expect(wrapper.find('.node-help-tooltip__description').text()).toBe(
+ 'Converts a string to uppercase.'
+ )
+ expect(wrapper.find('.node-help-tooltip__examples').exists()).toBe(false)
+ })
+
+ test('does not show a tooltip for a node without description or examples', async () => {
+ const wrapper = await mountContent(
+ functionNode({ examples: null, description: null })
+ )
+
+ await hoverRow(wrapper)
+
+ expect(tooltipVisible(wrapper)).toBe(false)
+ })
+
+ test('cancels a pending tooltip when the mouse leaves early', async () => {
+ const wrapper = await mountContent(functionNode())
+ const row = wrapper.find('.node-explorer-content__content')
+
+ await row.trigger('mouseenter')
+ vi.advanceTimersByTime(SHOW_DELAY / 2)
+ await row.trigger('mouseleave')
+ vi.advanceTimersByTime(SHOW_DELAY)
+ await settle()
+
+ expect(tooltipVisible(wrapper)).toBe(false)
+ })
+
+ test('hides the tooltip with a delay after leaving the node', async () => {
+ const wrapper = await mountContent(functionNode())
+ await hoverRow(wrapper)
+
+ await wrapper.find('.node-explorer-content__content').trigger('mouseleave')
+ vi.advanceTimersByTime(HIDE_DELAY - 1)
+ await settle()
+ expect(tooltipVisible(wrapper)).toBe(true)
+
+ vi.advanceTimersByTime(1)
+ await settle()
+ expect(tooltipVisible(wrapper)).toBe(false)
+ })
+
+ test('keeps the tooltip open while the mouse is inside it', async () => {
+ const wrapper = await mountContent(functionNode())
+ await hoverRow(wrapper)
+ const tooltip = wrapper.find('.node-help-tooltip')
+
+ await wrapper.find('.node-explorer-content__content').trigger('mouseleave')
+ vi.advanceTimersByTime(HIDE_DELAY / 2)
+ await tooltip.trigger('mouseenter')
+ vi.advanceTimersByTime(HIDE_DELAY * 2)
+ await settle()
+ expect(tooltipVisible(wrapper)).toBe(true)
+
+ await tooltip.trigger('mouseleave')
+ vi.advanceTimersByTime(HIDE_DELAY)
+ await settle()
+ expect(tooltipVisible(wrapper)).toBe(false)
+ })
+
+ test('re-emits a clicked example and hides the tooltip', async () => {
+ const node = functionNode()
+ const wrapper = await mountContent(node)
+ await hoverRow(wrapper)
+
+ await wrapper.findAll('.node-help-tooltip__example')[1].trigger('click')
+ await settle()
+
+ expect(wrapper.emitted('example-click')).toEqual([[node.examples[1]]])
+ expect(tooltipVisible(wrapper)).toBe(false)
+ })
+
+ test('forwards example clicks from nested nodes', async () => {
+ const child = functionNode()
+ const category = {
+ name: 'Text',
+ description: null,
+ examples: null,
+ icon: null,
+ identifier: null,
+ nodes: [child],
+ }
+ const wrapper = await mountContent(category, {
+ depth: 0,
+ path: null,
+ searchPath: '',
+ })
+
+ // Row 0 is the category itself, row 1 its child function.
+ await hoverRow(wrapper, 1)
+ await wrapper.find('.node-help-tooltip__example').trigger('click')
+
+ expect(wrapper.emitted('example-click')).toEqual([[child.examples[0]]])
+ })
+})
diff --git a/web-frontend/test/unit/core/components/nodeExplorer/NodeHelpTooltip.spec.js b/web-frontend/test/unit/core/components/nodeExplorer/NodeHelpTooltip.spec.js
new file mode 100644
index 0000000000..26486660e0
--- /dev/null
+++ b/web-frontend/test/unit/core/components/nodeExplorer/NodeHelpTooltip.spec.js
@@ -0,0 +1,232 @@
+import { vi } from 'vitest'
+import flushPromises from 'flush-promises'
+import { TestApp } from '@baserow/test/helpers/testApp'
+import NodeHelpTooltip from '@baserow/modules/core/components/nodeExplorer/NodeHelpTooltip.vue'
+
+// Each example is normally rendered as a read-only tiptap editor. That is
+// irrelevant here, so render the formula as plain text instead.
+const FormulaInputFieldStub = {
+ props: { value: { type: String, default: '' } },
+ template: '{{ value }}',
+}
+
+const upperNode = {
+ name: 'upper',
+ type: 'function',
+ description: 'Converts a string to uppercase.',
+ icon: 'iconoir-text',
+ examples: [
+ { formula: "upper('hello')", result: "'HELLO'" },
+ { formula: "upper(concat('a', 'b'))", result: "'AB'" },
+ { formula: "upper('MiXeD')", result: "'MIXED'" },
+ ],
+}
+
+describe('NodeHelpTooltip', () => {
+ let testApp = null
+ let target = null
+
+ beforeEach(() => {
+ testApp = new TestApp()
+ target = document.createElement('div')
+ document.body.appendChild(target)
+ })
+
+ afterEach(async () => {
+ target.remove()
+ await testApp.afterEach()
+ })
+
+ async function mountTooltip(props = {}) {
+ const wrapper = await testApp.mount(NodeHelpTooltip, {
+ props: { node: upperNode, ...props },
+ global: {
+ provide: { nodesHierarchy: [] },
+ stubs: { FormulaInputField: FormulaInputFieldStub },
+ },
+ })
+ // The Context only renders its content once shown, which is what the node
+ // explorer does when a node is hovered.
+ wrapper.vm.show(target)
+ await flushPromises()
+ return wrapper
+ }
+
+ test('renders every example of the node', async () => {
+ const wrapper = await mountTooltip()
+
+ expect(wrapper.find('.node-help-tooltip__title').text()).toBe('upper')
+ expect(wrapper.find('.node-help-tooltip__description').text()).toBe(
+ 'Converts a string to uppercase.'
+ )
+ expect(wrapper.find('.node-help-tooltip .control__label').text()).toBe(
+ 'nodeHelpTooltip.exampleLabel - 3'
+ )
+
+ const examples = wrapper.findAll('.node-help-tooltip__example')
+ expect(
+ examples.map((example) =>
+ example.find('.formula-input-field-stub').text()
+ )
+ ).toEqual(["upper('hello')", "upper(concat('a', 'b'))", "upper('MiXeD')"])
+ // The i18n mock only interpolates `count`, so the result line renders as
+ // the bare key.
+ expect(
+ examples.map((example) =>
+ example.find('.node-help-tooltip__example-result').text()
+ )
+ ).toEqual(Array(3).fill('nodeHelpTooltip.result'))
+ })
+
+ test('renders no example section for a node without examples', async () => {
+ const wrapper = await mountTooltip({
+ node: { ...upperNode, examples: null },
+ })
+
+ expect(wrapper.find('.node-help-tooltip__description').exists()).toBe(true)
+ expect(wrapper.find('.node-help-tooltip__examples').exists()).toBe(false)
+ expect(wrapper.find('.node-help-tooltip__examples-hint').exists()).toBe(
+ false
+ )
+ })
+
+ test('renders no result line for an example without one', async () => {
+ const wrapper = await mountTooltip({
+ node: {
+ ...upperNode,
+ examples: [{ formula: 'get()', result: '' }],
+ },
+ })
+
+ const examples = wrapper.findAll('.node-help-tooltip__example')
+ expect(examples).toHaveLength(1)
+ expect(examples[0].find('.formula-input-field-stub').text()).toBe('get()')
+ expect(
+ examples[0].find('.node-help-tooltip__example-result').exists()
+ ).toBe(false)
+ expect(
+ examples[0].find('.node-help-tooltip__example-footer').exists()
+ ).toBe(false)
+ })
+
+ test('renders no description for a node without one', async () => {
+ const wrapper = await mountTooltip({
+ node: { ...upperNode, description: null },
+ })
+
+ expect(wrapper.find('.node-help-tooltip__title').text()).toBe('upper')
+ expect(wrapper.find('.node-help-tooltip__description').exists()).toBe(false)
+ expect(wrapper.findAll('.node-help-tooltip__example')).toHaveLength(3)
+ })
+
+ test('is display-only by default', async () => {
+ const wrapper = await mountTooltip()
+ const documentClick = vi.fn()
+ document.addEventListener('click', documentClick)
+
+ expect(
+ wrapper.find('.node-help-tooltip__examples--clickable').exists()
+ ).toBe(false)
+ expect(
+ wrapper.find('.node-help-tooltip__example--clickable').exists()
+ ).toBe(false)
+ expect(wrapper.find('.node-help-tooltip__examples-hint').exists()).toBe(
+ false
+ )
+ expect(
+ wrapper.find('.node-help-tooltip__example-insert-icon').exists()
+ ).toBe(false)
+
+ await wrapper.findAll('.node-help-tooltip__example')[1].trigger('click')
+
+ expect(wrapper.emitted('example-click')).toBeUndefined()
+ // Nothing intercepts the click, so it bubbles up to the document.
+ expect(documentClick).toHaveBeenCalledTimes(1)
+ document.removeEventListener('click', documentClick)
+ })
+
+ test('emits the clicked example when examples are clickable', async () => {
+ const wrapper = await mountTooltip({ clickableExamples: true })
+
+ expect(
+ wrapper.find('.node-help-tooltip__examples--clickable').exists()
+ ).toBe(true)
+ expect(
+ wrapper.findAll('.node-help-tooltip__example--clickable')
+ ).toHaveLength(3)
+ expect(wrapper.find('.node-help-tooltip__examples-hint').text()).toBe(
+ 'nodeHelpTooltip.clickToInsert'
+ )
+ // Every example carries the insert arrow at the end of its footer.
+ expect(
+ wrapper
+ .findAll('.node-help-tooltip__example')
+ .map((example) =>
+ example
+ .find('.node-help-tooltip__example-footer > :last-child')
+ .classes()
+ )
+ ).toEqual(
+ Array(3).fill([
+ 'node-help-tooltip__example-insert-icon',
+ 'iconoir-arrow-right',
+ ])
+ )
+
+ await wrapper.findAll('.node-help-tooltip__example')[1].trigger('click')
+
+ expect(wrapper.emitted('example-click')).toEqual([[upperNode.examples[1]]])
+ })
+
+ test('shows the insert arrow for a clickable example without a result', async () => {
+ const wrapper = await mountTooltip({
+ clickableExamples: true,
+ node: {
+ ...upperNode,
+ examples: [{ formula: 'get()', result: '' }],
+ },
+ })
+
+ const footer = wrapper.find('.node-help-tooltip__example-footer')
+ expect(footer.find('.node-help-tooltip__example-result').exists()).toBe(
+ false
+ )
+ expect(
+ footer.find('.node-help-tooltip__example-insert-icon').exists()
+ ).toBe(true)
+ })
+
+ test('keeps example clicks from blurring the editor or reaching the document', async () => {
+ const wrapper = await mountTooltip({ clickableExamples: true })
+ const documentClick = vi.fn()
+ document.addEventListener('click', documentClick)
+ const example = wrapper.find('.node-help-tooltip__example')
+
+ // The tooltip lives outside the formula editor, so a mousedown would blur
+ // the editor and close the explorer before the click lands.
+ const mousedown = new MouseEvent('mousedown', {
+ bubbles: true,
+ cancelable: true,
+ })
+ example.element.dispatchEvent(mousedown)
+ expect(mousedown.defaultPrevented).toBe(true)
+
+ // The click must not reach the document-level click-outside handlers.
+ await example.trigger('click')
+ expect(documentClick).not.toHaveBeenCalled()
+ expect(wrapper.emitted('example-click')).toHaveLength(1)
+ document.removeEventListener('click', documentClick)
+ })
+
+ test('reports the mouse entering and leaving it', async () => {
+ const wrapper = await mountTooltip()
+ const tooltip = wrapper.find('.node-help-tooltip')
+
+ await tooltip.trigger('mouseenter')
+ expect(wrapper.emitted('mouseenter')).toHaveLength(1)
+ expect(wrapper.emitted('mouseleave')).toBeUndefined()
+
+ await tooltip.trigger('mouseleave')
+ expect(wrapper.emitted('mouseleave')).toHaveLength(1)
+ })
+})
diff --git a/web-frontend/test/unit/core/formula/FormulaInputField.spec.js b/web-frontend/test/unit/core/formula/FormulaInputField.spec.js
index 8da294e234..ae2196448a 100644
--- a/web-frontend/test/unit/core/formula/FormulaInputField.spec.js
+++ b/web-frontend/test/unit/core/formula/FormulaInputField.spec.js
@@ -198,6 +198,19 @@ describe('FormulaInputField validates on display', () => {
const wrapper = await mountField('$formula: now()')
expect(wrapper.emitted('update:invalid').at(-1)).toEqual([true])
})
+
+ it('does not flag an incomplete formula in a read-only field', async () => {
+ // Read-only fields display snippets such as the help tooltip's `get()`
+ // example, which is deliberately missing its path.
+ const wrapper = await testApp.mount(FormulaInputField, {
+ props: { value: 'get()', mode: 'advanced', readOnly: true },
+ })
+ await wrapper.vm.$nextTick()
+
+ expect(wrapper.vm.isFormulaInvalid).toBe(false)
+ expect(wrapper.find('.formula-input-field--error').exists()).toBe(false)
+ expect(wrapper.emitted('update:invalid')).toBeUndefined()
+ })
})
describe('FormulaInputField mode changes', () => {
@@ -369,3 +382,69 @@ describe('FormulaInputField mode changes', () => {
expect(wrapper.emitted('input').at(-1)).toEqual([''])
})
})
+
+// ── Help tooltip example insertion ──────────────────────────────────
+// Clicking an example in the Data Explorer's help tooltip inserts that
+// example's formula into the editor at the cursor.
+
+describe('FormulaInputField example insertion', () => {
+ let testApp = null
+
+ beforeEach(() => {
+ testApp = new TestApp()
+ })
+
+ afterEach(async () => {
+ await testApp.afterEach()
+ })
+
+ const example = { formula: "upper('hello')", result: "'HELLO'" }
+
+ /** The editor text without the zero-width spaces used for cursor slots. */
+ function editorText(wrapper) {
+ return wrapper
+ .find('.formula-input-field')
+ .text()
+ .replace(/\u200b/g, '')
+ }
+
+ it('inserts the example into an empty advanced-mode field', async () => {
+ const wrapper = await testApp.mount(FormulaInputField, {
+ props: { value: '', mode: 'advanced' },
+ })
+ expect(wrapper.emitted('input')).toBeUndefined()
+
+ wrapper.vm.handleExampleSelected(example)
+ await wrapper.vm.$nextTick()
+
+ expect(editorText(wrapper)).toBe("upper('hello')")
+ expect(wrapper.emitted('input').at(-1)).toEqual(["upper('hello')"])
+ })
+
+ it('inserts the example at the cursor', async () => {
+ const wrapper = await testApp.mount(FormulaInputField, {
+ props: { value: 'lower()', mode: 'advanced' },
+ })
+ // Place the cursor in the (empty) argument slot of `lower(`: ZWS (1),
+ // function node (1), so position 3 sits right after the function name.
+ wrapper.vm.editor.commands.setTextSelection(3)
+
+ wrapper.vm.handleExampleSelected(example)
+ await wrapper.vm.$nextTick()
+
+ expect(editorText(wrapper)).toBe("lower(upper('hello'))")
+ expect(wrapper.emitted('input').at(-1)).toEqual(["lower(upper('hello'))"])
+ })
+
+ it('ignores examples in simple mode', async () => {
+ const wrapper = await testApp.mount(FormulaInputField, {
+ props: { value: '', mode: 'simple' },
+ })
+
+ wrapper.vm.handleExampleSelected(example)
+ await wrapper.vm.$nextTick()
+
+ expect(editorText(wrapper)).toBe('')
+ expect(wrapper.emitted('input')).toBeUndefined()
+ })
+})
diff --git a/web-frontend/test/unit/core/formula/runtimeFormulaTypes.spec.js b/web-frontend/test/unit/core/formula/runtimeFormulaTypes.spec.js
index 8b9b13a75c..06cd1a869d 100644
--- a/web-frontend/test/unit/core/formula/runtimeFormulaTypes.spec.js
+++ b/web-frontend/test/unit/core/formula/runtimeFormulaTypes.spec.js
@@ -59,6 +59,8 @@ import {
RuntimeToDatetime,
} from '@baserow/modules/core/runtimeFormulaTypes'
import { Timedelta } from '@baserow/modules/core/runtimeFormulaArgumentTypes'
+import * as runtimeFormulaTypes from '@baserow/modules/core/runtimeFormulaTypes'
+import parseBaserowFormula from '@baserow/modules/core/formula/parser/parser'
import { expect } from 'vitest'
/** Tests for the RuntimeConcat class. */
@@ -2757,3 +2759,36 @@ describe('RuntimeToDatetime', () => {
expect(result).toBe(expected)
})
})
+
+/**
+ * Every runtime formula type feeds the help tooltip in the formula editor,
+ * which renders all of its examples and lets the user insert them. Keep the
+ * examples present and syntactically valid.
+ */
+describe('runtime formula type examples', () => {
+ const { RuntimeFormulaFunction } = runtimeFormulaTypes
+ const formulaTypes = Object.values(runtimeFormulaTypes).filter(
+ (candidate) =>
+ typeof candidate === 'function' &&
+ candidate !== RuntimeFormulaFunction &&
+ candidate.prototype instanceof RuntimeFormulaFunction
+ )
+
+ test('finds the runtime formula types to check', () => {
+ expect(formulaTypes.length).toBeGreaterThan(0)
+ })
+
+ test.each(
+ formulaTypes.map((FormulaType) => [FormulaType.getType(), FormulaType])
+ )('%s defines parsable examples', (type, FormulaType) => {
+ const examples = new FormulaType().getExamples()
+
+ expect(examples.length).toBeGreaterThan(0)
+ for (const example of examples) {
+ expect(typeof example.formula).toBe('string')
+ expect(example.formula).not.toBe('')
+ expect(typeof example.result).toBe('string')
+ expect(() => parseBaserowFormula(example.formula)).not.toThrow()
+ }
+ })
+})