2023-12-19 19:22:27 +08:00
|
|
|
import { HiveSQL } from '../../../filters';
|
2023-07-10 10:19:30 +08:00
|
|
|
import { readSQL } from '../../../helper';
|
|
|
|
|
|
|
|
const parser = new HiveSQL();
|
|
|
|
|
|
|
|
const features = {
|
|
|
|
desc: readSQL(__dirname, 'describe.sql'),
|
|
|
|
};
|
|
|
|
|
2023-09-06 15:15:04 +08:00
|
|
|
describe('HiveSQL Describe Syntax Tests', () => {
|
2023-07-10 10:19:30 +08:00
|
|
|
features.desc.forEach((des) => {
|
|
|
|
it(des, () => {
|
|
|
|
expect(parser.validate(des).length).toBe(0);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|