lava-oushudb-dt-sql-parser/test/parser/spark/syntax/setStatement.test.ts
Hayden ecbbee32c7
test: remove barrier files to improve unit testing performance (#249)
* test: remove barrier files to improve unit testing performance

* chore: change check-types command
2024-01-19 21:10:00 +08:00

17 lines
372 B
TypeScript

import SparkSQL from 'src/parser/spark';
import { readSQL } from 'test/helper';
const parser = new SparkSQL();
const features = {
set: readSQL(__dirname, 'set.sql'),
};
describe('Spark Set Syntax Tests', () => {
features.set.forEach((itemSql) => {
it(itemSql, () => {
expect(parser.validate(itemSql).length).toBe(0);
});
});
});