mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 12:29:42 +02:00
14 lines
483 B
JavaScript
14 lines
483 B
JavaScript
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const fs = require('fs');
|
|
|
|
import { LALRGenerator } from 'jison';
|
|
|
|
describe('class diagram grammar', function () {
|
|
it('should introduce no new conflicts', function () {
|
|
const file = require.resolve('./parser/classDiagram.jison');
|
|
const grammarSource = fs.readFileSync(file, 'utf8');
|
|
const grammarParser = new LALRGenerator(grammarSource, {});
|
|
expect(grammarParser.conflicts < 16).toBe(true);
|
|
});
|
|
});
|