From 73990acf7a024028076ba93ede7ca8a6d6039fc5 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 25 Nov 2019 12:53:07 +0000 Subject: [PATCH] use function over const lambda --- test/test-utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test-utils.js b/test/test-utils.js index 6e6738de..880dd772 100644 --- a/test/test-utils.js +++ b/test/test-utils.js @@ -57,4 +57,6 @@ export function deleteIndexedDB(dbName) { }); } -export const sleep = (ms) => new Promise((resolve) => { setTimeout(resolve, ms); }); +export function sleep(ms) { + return new Promise((resolve) => { setTimeout(resolve, ms); }); +}