Remove redundant test.

Already checked in lint.
This commit is contained in:
Sidharth Vinod 2023-07-25 19:08:40 +05:30
parent 4ea1227e29
commit 409dedb3ef
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
import { readFile } from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
// @ts-ignore - no types
import { LALRGenerator } from 'jison';
const getAbsolutePath = (relativePath: string) => {
return fileURLToPath(new URL(relativePath, import.meta.url));
};
describe('class diagram grammar', function () {
it('should have no conflicts', async function () {
const grammarSource = await readFile(getAbsolutePath('./parser/classDiagram.jison'), 'utf8');
const grammarParser = new LALRGenerator(grammarSource, {});
expect(grammarParser.conflicts).toBe(0);
});
});