diff --git a/src/type-extensions/function.ts b/src/type-extensions/function.ts index 753ee90..9c530fb 100644 --- a/src/type-extensions/function.ts +++ b/src/type-extensions/function.ts @@ -103,7 +103,12 @@ class FunctionTypeExtension extends TypeExtension { it('lots of doString calls should succeed', async () => { const engine = await getEngine() - const length = 10000; + const length = 10000 for (let i = 0; i < length; i++) { - const a = Math.floor(Math.random() * 100); - const b = Math.floor(Math.random() * 100); - const result = await engine.doString(`return ${a} + ${b};`); - expect(result).to.equal(a + b); + const a = Math.floor(Math.random() * 100) + const b = Math.floor(Math.random() * 100) + const result = await engine.doString(`return ${a} + ${b};`) + expect(result).to.equal(a + b) } }) })