17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
|
import PgSQL from '../../../../src/parser/pgsql';
|
||
|
import { readSQL } from '../../../helper';
|
||
|
|
||
|
const parser = new PgSQL();
|
||
|
|
||
|
const features = {
|
||
|
others: readSQL(__dirname, 'others.sql'),
|
||
|
};
|
||
|
|
||
|
describe('PgSQL Other SQL Syntax Tests', () => {
|
||
|
features.others.forEach((other) => {
|
||
|
it(other, () => {
|
||
|
expect(parser.validate(other).length).toBe(0);
|
||
|
});
|
||
|
});
|
||
|
});
|