Skip to content

Commit 4242b96

Browse files
committed
test(grammar): add first test
1 parent bd83889 commit 4242b96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import * as fs from 'node:fs';
22
import * as path from 'node:path';
33
import { assert } from 'chai';
44

5-
import { Grammar } from '../src/index.js'
5+
import { Grammar } from '../src/index.js';
66

77
describe('SABNF', function () {
88
it('should export Grammar', function () {
99
assert.isFunction(Grammar);
1010
});
1111

1212
it('should convert to string', function () {
13-
const abnfFilePath = path.join('..', 'src', 'runtime-expression.bnf');
13+
const abnfFilePath = path.join('..', 'src', 'grammar.bnf');
1414
const abnf = fs.readFileSync(new URL(abnfFilePath, import.meta.url)).toString();
1515
const grammar = new Grammar();
1616

1717
assert.strictEqual(abnf, grammar.toString());
18-
})
19-
})
18+
});
19+
});

0 commit comments

Comments
 (0)