Skip to content

Commit 6ff74d1

Browse files
committed
Inlude :> and !:> to generic operators test
1 parent 4b07e45 commit 6ff74d1

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

test/singlestoredb.test.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('SingleStoreDbFormatter', () => {
3535
]);
3636
supportsOperators(
3737
format,
38-
[':=', '&', '|', '^', '~', '<<', '>>', '<=>', '&&', '||'],
38+
[':=', '&', '|', '^', '~', '<<', '>>', '<=>', '&&', '||', ':>', '!:>'],
3939
['AND', 'OR']
4040
);
4141
supportsLimiting(format, { limit: true, offset: true });
@@ -81,19 +81,4 @@ describe('SingleStoreDbFormatter', () => {
8181
`);
8282
});
8383
});
84-
85-
describe(`formats custom type-cast operators`, () => {
86-
it(`formats ':>' type-cast operator`, () => {
87-
expect(format(`SELECT 1 :> DOUBLE AS foo`)).toBe(dedent`
88-
SELECT
89-
1 :> DOUBLE AS foo
90-
`);
91-
});
92-
it(`formats '!:>' type-cast operator`, () => {
93-
expect(format(`SELECT 1 !:> DOUBLE AS foo`)).toBe(dedent`
94-
SELECT
95-
1 !:> DOUBLE AS foo
96-
`);
97-
});
98-
});
9984
});

0 commit comments

Comments
 (0)