File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,16 +91,16 @@ describe('Parser', () => {
91
91
` ) ;
92
92
} ) ;
93
93
94
- it ( 'limit maximum number of tokens' , ( ) => {
94
+ it ( 'limits by a maximum number of tokens' , ( ) => {
95
95
expect ( ( ) => parse ( '{ foo }' , { maxTokens : 3 } ) ) . to . not . throw ( ) ;
96
96
expect ( ( ) => parse ( '{ foo }' , { maxTokens : 2 } ) ) . to . throw (
97
- 'Syntax Error: Document contains more that 2 tokens. Parsing aborted.' ,
97
+ 'Syntax Error: Document contains more than 2 tokens. Parsing aborted.' ,
98
98
) ;
99
99
100
100
expect ( ( ) => parse ( '{ foo(bar: "baz") }' , { maxTokens : 8 } ) ) . to . not . throw ( ) ;
101
101
102
102
expect ( ( ) => parse ( '{ foo(bar: "baz") }' , { maxTokens : 7 } ) ) . to . throw (
103
- 'Syntax Error: Document contains more that 7 tokens. Parsing aborted.' ,
103
+ 'Syntax Error: Document contains more than 7 tokens. Parsing aborted.' ,
104
104
) ;
105
105
} ) ;
106
106
Original file line number Diff line number Diff line change @@ -1638,7 +1638,7 @@ export class Parser {
1638
1638
throw syntaxError (
1639
1639
this . _lexer . source ,
1640
1640
token . start ,
1641
- `Document contains more that ${ maxTokens } tokens. Parsing aborted.` ,
1641
+ `Document contains more than ${ maxTokens } tokens. Parsing aborted.` ,
1642
1642
) ;
1643
1643
}
1644
1644
}
You can’t perform that action at this time.
0 commit comments