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