Whitespace fixes

redux
David Majda 8 years ago
parent 47bc456dcd
commit 45b62d66d2

@ -172,7 +172,7 @@ while (args.length > 0 && isOption(args[0])) {
} }
try { try {
json = fs.readFileSync(args[0]); json = fs.readFileSync(args[0]);
} catch(e) { } catch (e) {
abort("Can't read from file \"" + args[0] + "\"."); abort("Can't read from file \"" + args[0] + "\".");
} }
addExtraOptions(options, json); addExtraOptions(options, json);

@ -94,7 +94,7 @@ beforeEach(function() {
this.message = () => this.message = () =>
"Expected the pass to report an error " "Expected the pass to report an error "
+ (details ? "with details " + jasmine.pp(details) + " ": "") + (details ? "with details " + jasmine.pp(details) + " " : "")
+ "for grammar " + jasmine.pp(grammar) + ", " + "for grammar " + jasmine.pp(grammar) + ", "
+ "but it didn't."; + "but it didn't.";

@ -252,7 +252,7 @@ describe("PEG.js grammar parser", function() {
// Canonical Initializer is "{ code }". // Canonical Initializer is "{ code }".
it("parses Initializer", function() { it("parses Initializer", function() {
expect("{ code };start = 'abcd'").toParseAs( expect("{ code };start = 'abcd'").toParseAs(
{ type: "grammar", initializer: initializer, rules: [ruleStart] } { type: "grammar", initializer: initializer, rules: [ruleStart] }
); );
}); });

Loading…
Cancel
Save