Debian Codegraph @

spec/unit/compiler/passes/report-undefined-rules.spec.js

raw symbols SCIP
1 /* global peg */
2
3 "use strict";
4
5 describe("compiler pass |reportUndefinedRules|", function() {
6 var pass = peg.compiler.passes.check.reportUndefinedRules;
7
8 it("reports undefined rules", function() {
9 expect(pass).toReportError('start = undefined', {
10 message: 'Rule "undefined" is not defined.',
11 location: {
12 start: { offset: 8, line: 1, column: 9 },
13 end: { offset: 17, line: 1, column: 18 }
14 }
15 });
16 });
17 });