lava-oushudb-dt-sql-parser/test/parser/impala/lexer.test.ts

13 lines
293 B
TypeScript
Raw Normal View History

import { ImpalaSQL } from '../../filters';
describe('ImpalaSQL Lexer tests', () => {
const parser = new ImpalaSQL();
const sql = 'SELECT * FROM table1';
const tokens = parser.getAllTokens(sql);
test('token counts', () => {
expect(tokens.length).toBe(7);
});
});