diff --git a/test/attempt/attempt.js b/test/attempt/attempt.js index 20d9769a5..1958d9800 100644 --- a/test/attempt/attempt.js +++ b/test/attempt/attempt.js @@ -1,6 +1,6 @@ const attempt = (fn, ...args) => { try { -return fn(args); +return fn(...args); } catch (e) { return e instanceof Error ? e : new Error(e); } diff --git a/test/testlog b/test/testlog index faed411e0..24482bac3 100644 --- a/test/testlog +++ b/test/testlog @@ -1,4 +1,4 @@ -Test log for: Thu Mar 22 2018 20:41:55 GMT+0000 (UTC) +Test log for: Fri Mar 23 2018 20:43:04 GMT+0000 (UTC) > 30-seconds-of-code@0.0.2 test /home/travis/build/Chalarangelo/30-seconds-of-code > tape test/**/*.test.js | tap-spec @@ -1960,9 +1960,9 @@ Test log for: Thu Mar 22 2018 20:41:55 GMT+0000 (UTC) ✔ zipWith is a Function ✔ Sends a GET request - ✔ Sends a POST request ✔ Runs the function provided ✔ Runs promises in series + ✔ Sends a POST request ✔ Works as expecting, passing arguments properly ✔ Works with multiple promises