850ddf5889
After 898a7b5a2d
the specs mostly tested
the visitor implementation, not actual code in the passes.
10 lines
292 B
JavaScript
10 lines
292 B
JavaScript
describe("compiler pass |reportMissingRules|", function() {
|
|
var pass = PEG.compiler.passes.check.reportMissingRules;
|
|
|
|
it("reports missing rules", function() {
|
|
expect(pass).toReportError('start = missing', {
|
|
message: 'Referenced rule "missing" does not exist.'
|
|
});
|
|
});
|
|
});
|