From a4b4a575693045eb3ab9109bbcc8c642f6cf91de Mon Sep 17 00:00:00 2001 From: David Majda Date: Fri, 21 Aug 2015 17:38:04 +0200 Subject: [PATCH] Custom tracers specs: s/'/"/ The convention is to use single quotes only for strings containing code. --- spec/api/generated-parser-api.spec.js | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/spec/api/generated-parser-api.spec.js b/spec/api/generated-parser-api.spec.js index 9a05eb6..99e2db0 100644 --- a/spec/api/generated-parser-api.spec.js +++ b/spec/api/generated-parser-api.spec.js @@ -79,50 +79,50 @@ describe("generated parser API", function() { parser.parse("b", { tracer: tracer }); expect(tracer.trace).toHaveBeenCalledWith({ - type: 'rule.enter', - rule: 'start', + type: "rule.enter", + rule: "start", location: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 0, line: 1, column: 1 } } }); expect(tracer.trace).toHaveBeenCalledWith({ - type: 'rule.enter', - rule: 'a', + type: "rule.enter", + rule: "a", location: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 0, line: 1, column: 1 } } }); expect(tracer.trace).toHaveBeenCalledWith({ - type: 'rule.fail', - rule: 'a', + type: "rule.fail", + rule: "a", location: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 0, line: 1, column: 1 } } }); expect(tracer.trace).toHaveBeenCalledWith({ - type: 'rule.enter', - rule: 'b', + type: "rule.enter", + rule: "b", location: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 0, line: 1, column: 1 } } }); expect(tracer.trace).toHaveBeenCalledWith({ - type: 'rule.match', - rule: 'b', - result: 'b', + type: "rule.match", + rule: "b", + result: "b", location: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 1, line: 1, column: 2 } } }); expect(tracer.trace).toHaveBeenCalledWith({ - type: 'rule.match', - rule: 'start', - result: 'b', + type: "rule.match", + rule: "start", + result: "b", location: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 1, line: 1, column: 2 }