19 lines
440 B
TypeScript
19 lines
440 B
TypeScript
|
import TrinoSQL from "../../../../src/parser/trinosql";
|
||
|
import { readSQL } from "../../../helper";
|
||
|
|
||
|
const features = {
|
||
|
comment: readSQL(__dirname, 'comment.sql'),
|
||
|
|
||
|
};
|
||
|
|
||
|
describe('TrinoSQL Comment Statements Syntax Tests', () => {
|
||
|
const parser = new TrinoSQL();
|
||
|
// Comment statements
|
||
|
features.comment.forEach((sql) => {
|
||
|
it(sql, () => {
|
||
|
expect(parser.validate(sql).length).toBe(0);
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
|