From 3ff16ca70e9c52f7c651df0dbc61d1ec78720f1a Mon Sep 17 00:00:00 2001 From: 30secondsofcode <30secondsofcode@gmail.com> Date: Fri, 23 Mar 2018 20:43:11 +0000 Subject: [PATCH] Travis build: 1848 [cron] --- test/attempt/attempt.js | 2 +- test/testlog | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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