8f72a5af60
* fix: #236 export AbstractParseTreeVisitor * build: set isolatedModules true * feat: import parser about from filters
17 lines
380 B
TypeScript
17 lines
380 B
TypeScript
import { HiveSQL } from '../../../filters';
|
|
import { readSQL } from '../../../helper';
|
|
|
|
const parser = new HiveSQL();
|
|
|
|
const features = {
|
|
desc: readSQL(__dirname, 'describe.sql'),
|
|
};
|
|
|
|
describe('HiveSQL Describe Syntax Tests', () => {
|
|
features.desc.forEach((des) => {
|
|
it(des, () => {
|
|
expect(parser.validate(des).length).toBe(0);
|
|
});
|
|
});
|
|
});
|