2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00

feat(parser): inconsistent tag detection test

This commit is contained in:
Nikolay Kostyurin
2018-07-23 23:06:50 +02:00
parent 4d9dc34545
commit 2eb83c1ad7
+7
View File
@@ -97,4 +97,11 @@ describe('Parser', () => {
},
]);
});
test('detect inconsistent tag', () => {
const onError = jest.fn();
const ast = parse('[c][/c][b]hello[/c][/b][b]', { onError });
expect(onError).toHaveBeenCalled();
})
});