Skip to content

Commit be9cf7b

Browse files
committed
test: fix specs
1 parent a50f478 commit be9cf7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class Parser {
292292

293293
if ((<ElementNode>this.currentTag).tag !== tagToClose) {
294294
this.throwError(
295-
new SyntaxError(`Expected closing "${(<ElementNode>this.currentTag).tag}", found "${tagToClose} at ${this.position}"`),
295+
new SyntaxError(`Expected closing "${(<ElementNode>this.currentTag).tag}", found "${tagToClose}" at ${this.position}`),
296296
);
297297
}
298298

test/parse.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe('html parser', () => {
140140
});
141141

142142
it('should throw an error when closing the wrong tag', () => {
143-
expect(() => parse(`<div></span>`)).toThrowError('Expected closing "div", found "span" at 1:5');
143+
expect(() => parse(`<div></span>`)).toThrowError('Expected closing "div", found "span" at 1:12');
144144
});
145145

146146
it('should parse comments and text', () => {

0 commit comments

Comments
 (0)