refactor(js): misc fixes & tidying

This commit is contained in:
Amaan Qureshi 2024-04-09 21:44:37 -04:00
parent abc7910381
commit 96d18408a3
7 changed files with 80 additions and 94 deletions

View file

@ -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');