Skip to content

Commit

Permalink
enable to parse cast function (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-re authored Mar 23, 2023
1 parent e2bccd3 commit 663cd3d
Show file tree
Hide file tree
Showing 5 changed files with 906 additions and 697 deletions.
4 changes: 2 additions & 2 deletions packages/server/test/complete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe('on blank space', () => {

test('complete inside SELECT', () => {
const result = complete('SELECT ', { line: 0, column: 7 }, SIMPLE_SCHEMA)
expect(result.candidates.length).toEqual(12) // TODO whare are they?
expect(result.candidates.length).toEqual(13) // TODO whare are they?
const expected = [
expect.objectContaining({ label: 'array_concat()' }),
expect.objectContaining({ label: 'array_contains()' }),
Expand Down Expand Up @@ -349,7 +349,7 @@ describe('cursor on dot', () => {
{ line: 0, column: 8 },
SIMPLE_SCHEMA
)
expect(result.candidates.length).toEqual(13) // TODO what are they?
expect(result.candidates.length).toEqual(14) // TODO what are they?
})
})

Expand Down
2 changes: 1 addition & 1 deletion packages/server/test/complete/complete_table.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('TableName completion', () => {
{ line: 0, column: 7 },
SIMPLE_SCHEMA
)
expect(result.candidates.length).toEqual(13)
expect(result.candidates.length).toEqual(14)
const expected = [
expect.objectContaining({
label: 'Select all columns from TABLE1',
Expand Down
Loading

0 comments on commit 663cd3d

Please sign in to comment.