summary refs log tree commit diff
path: root/tests/setupJest.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/setupJest.js (renamed from util/tests/setupJest.js)6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/tests/setupJest.js b/tests/setupJest.js

index 35a3cb52..bb52525f 100644 --- a/util/tests/setupJest.js +++ b/tests/setupJest.js
@@ -7,7 +7,7 @@ const path = require("path"); global.expect.extend({ toBeFasterThan: async (func, target) => { const start = performance.now(); - var error; + let error; try { await func(); } catch (e) { @@ -17,7 +17,7 @@ global.expect.extend({ return { pass: time < target && !error, - message: () => error || `${func.name} took ${time}ms of maximum ${target}`, + message: () => error || `${func.name} took ${time}ms of maximum ${target}` }; - }, + } });