ecbbee32c7
* test: remove barrier files to improve unit testing performance * chore: change check-types command
17 lines
372 B
TypeScript
17 lines
372 B
TypeScript
import FlinkSQL from 'src/parser/flinksql';
|
|
import { readSQL } from 'test/helper';
|
|
|
|
const features = {
|
|
uses: readSQL(__dirname, 'use.sql'),
|
|
};
|
|
|
|
describe('FlinkSQL Use Syntax Tests', () => {
|
|
const parser = new FlinkSQL();
|
|
|
|
features.uses.forEach((sql) => {
|
|
it(sql, () => {
|
|
expect(parser.validate(sql).length).toBe(0);
|
|
});
|
|
});
|
|
});
|