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:
@@ -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();
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user