refactor(js): misc fixes & tidying
This commit is contained in:
parent
abc7910381
commit
96d18408a3
7 changed files with 80 additions and 94 deletions
|
|
@ -251,7 +251,7 @@ describe('Parser', () => {
|
|||
|
||||
it('handles long input strings', () => {
|
||||
const repeatCount = 10000;
|
||||
const inputString = '[' + '0,'.repeat(repeatCount) + ']';
|
||||
const inputString = `[${Array(repeatCount).fill('0').join(',')}]`;
|
||||
|
||||
tree = parser.parse(inputString);
|
||||
assert.equal(tree.rootNode.type, 'program');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue