You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
477 B
JavaScript
18 lines
477 B
JavaScript
"use strict";
|
|
|
|
let peg = require("../../../../lib/peg");
|
|
|
|
describe("compiler pass |reportUndefinedRules|", function() {
|
|
let pass = peg.compiler.passes.check.reportUndefinedRules;
|
|
|
|
it("reports undefined rules", function() {
|
|
expect(pass).toReportError("start = undefined", {
|
|
message: "Rule \"undefined\" is not defined.",
|
|
location: {
|
|
start: { offset: 8, line: 1, column: 9 },
|
|
end: { offset: 17, line: 1, column: 18 }
|
|
}
|
|
});
|
|
});
|
|
});
|