Comparing version
@@ -12,6 +12,6 @@ "use strict"; | ||
test("Single element page", () => { | ||
let lexer = new VFLexer_1.VFLexer(antlr4ts_1.CharStreams.fromString("<apex:page/>")); | ||
let tokens = new antlr4ts_1.CommonTokenStream(lexer); | ||
let parser = new VFParser_1.VFParser(tokens); | ||
let context = parser.vfUnit(); | ||
const lexer = new VFLexer_1.VFLexer(antlr4ts_1.CharStreams.fromString("<apex:page/>")); | ||
const tokens = new antlr4ts_1.CommonTokenStream(lexer); | ||
const parser = new VFParser_1.VFParser(tokens); | ||
const context = parser.vfUnit(); | ||
expect(context).toBeInstanceOf(VFParser_1.VfUnitContext); | ||
@@ -21,5 +21,5 @@ expect(context.element()).toBeInstanceOf(VFParser_1.ElementContext); | ||
test("Broken page", () => { | ||
let lexer = new VFLexer_1.VFLexer(antlr4ts_1.CharStreams.fromString("<apex:page")); | ||
let tokens = new antlr4ts_1.CommonTokenStream(lexer); | ||
let parser = new VFParser_1.VFParser(tokens); | ||
const lexer = new VFLexer_1.VFLexer(antlr4ts_1.CharStreams.fromString("<apex:page")); | ||
const tokens = new antlr4ts_1.CommonTokenStream(lexer); | ||
const parser = new VFParser_1.VFParser(tokens); | ||
parser.removeErrorListeners(); | ||
@@ -26,0 +26,0 @@ parser.addErrorListener(new ThrowingErrorListener_1.ThrowingErrorListener()); |
{ | ||
"name": "vf-parser", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Kevin Jones <nawforce@gmail.com> (https://github.com/nawforce)", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/nawforce/vf-parser/issues", |
@@ -31,2 +31,3 @@ vf-parser | ||
### History | ||
1.0.1 - Added TS declarations | ||
1.0.0 - Initial version | ||
@@ -33,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
164620
13.32%23
43.75%2494
24.76%37
2.78%