lava-oushudb-dt-sql-parser/test/parser/hive/syntax/exportStatement.test.ts

18 lines
393 B
TypeScript
Raw Normal View History

import HiveSQL from '../../../../src/parser/hive';
import { readSQL } from '../../../helper';
const features = {
exports: readSQL(__dirname, 'export.sql')
};
describe('HiveSQL Export Syntax Tests', () => {
const parser = new HiveSQL();
features.exports.forEach((exp) => {
it(exp, () => {
expect(parser.validate(exp).length).toBe(0);
});
});
});