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