lava-oushudb-dt-sql-parser/test/parser/spark/syntax/analyzeTableStatement.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
409 B
TypeScript

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