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