Skip to content

Commit 6056f80

Browse files
committed
add test for coverage
1 parent 8d8f38a commit 6056f80

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/language/__tests__/lexer-test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ describe('Lexer', () => {
165165
});
166166
});
167167

168+
it('reports unexpected characters', () => {
169+
expectSyntaxError('.').to.deep.equal({
170+
message: 'Syntax Error: Unexpected character: ".".',
171+
locations: [{ line: 1, column: 1 }],
172+
});
173+
});
174+
168175
it('errors respect whitespace', () => {
169176
let caughtError;
170177
try {

0 commit comments

Comments
 (0)