mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
filterparser tests added to test run
This commit is contained in:
@@ -3,5 +3,9 @@ import { parseFilter } from './parseFilter';
|
||||
test('parse string', () => {
|
||||
const ast = parseFilter('"123"', 'string');
|
||||
console.log(JSON.stringify(ast));
|
||||
expect(ast).toBe(3);
|
||||
expect(ast).toEqual({
|
||||
conditionType: 'like',
|
||||
left: { exprType: 'placeholder' },
|
||||
right: { exprType: 'value', value: '%123%' },
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user