Skip to content

Commit 7242137

Browse files
committed
Add additional number lexing test
1 parent f9e67c4 commit 7242137

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/language/__tests__/lexer-test.js

+7
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,13 @@ describe('Lexer', () => {
574574
'expected digit but got: <EOF>.'
575575
);
576576

577+
expect(
578+
() => lexOne('1.e1')
579+
).to.throw(
580+
'Syntax Error GraphQL request (1:3) Invalid number, ' +
581+
'expected digit but got: "e".'
582+
);
583+
577584
expect(
578585
() => lexOne('.123')
579586
).to.throw(

0 commit comments

Comments
 (0)