Skip to content

Commit 74c165c

Browse files
test: break test to demonstrate bug
1 parent b193583 commit 74c165c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

test/test-core.spec.ts

+15-2
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ test('should be not converting html entity name', t => {
243243
});
244244

245245
test('should parse with source locations', t => {
246-
const html = '<h1>Test</h1>\n<p><b>Foo</b></p>';
246+
const html = '<h1>Test</h1>\n<p><b>Foo</b><hr>';
247247
const tree = parser(html, { sourceLocations: true });
248248
const expected = [
249249
{
@@ -284,12 +284,25 @@ test('should parse with source locations', t => {
284284
line: 2,
285285
column: 1
286286
},
287+
end: {
288+
line: 2,
289+
column: 13
290+
}
291+
}
292+
},
293+
{
294+
tag: 'hr',
295+
location: {
296+
start: {
297+
line: 2,
298+
column: 14
299+
},
287300
end: {
288301
line: 2,
289302
column: 17
290303
}
291304
}
292-
}
305+
},
293306
];
294307
t.deepEqual(tree, expected);
295308
});

0 commit comments

Comments
 (0)