Skip to content

Commit

Permalink
test: add formula_boolean field to search test
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxing9 committed Nov 21, 2024
1 parent 82d3a4f commit a6425aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/nestjs-backend/test/aggregation-search.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { INestApplication } from '@nestjs/common';
import { FieldType } from '@teable/core';
import type { ITableFullVo } from '@teable/openapi';
import { getSearchCount, getSearchIndex, createField, updateViewColumnMeta } from '@teable/openapi';
import { x_20 } from './data-helpers/20x';
Expand Down Expand Up @@ -37,6 +38,14 @@ describe('OpenAPI AggregationController (e2e)', () => {
for (const field of x20LinkFromLookups.fields) {
await createField(subTable.id, field);
}

await createField(table.id, {
name: 'Formula_Boolean',
options: {
expression: `{${table.fields[0].id}} > 1`,
},
type: FieldType.Formula,
});
});

afterAll(async () => {
Expand Down

0 comments on commit a6425aa

Please sign in to comment.