Travis build: 1978 [cron]

This commit is contained in:
30secondsofcode
2018-04-19 20:55:17 +00:00
parent 9a09437593
commit c885325cdc
3 changed files with 27 additions and 42 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
Test log for: Wed Apr 18 2018 20:55:18 GMT+0000 (UTC)
Test log for: Thu Apr 19 2018 20:55:11 GMT+0000 (UTC)
> 30-seconds-of-code@0.0.3 test /home/travis/build/Chalarangelo/30-seconds-of-code
> tape test/**/*.test.js | tap-spec
@ -1911,6 +1911,12 @@ Test log for: Wed Apr 18 2018 20:55:18 GMT+0000 (UTC)
✔ validateNumber(null) returns false
✔ validateNumber(123 * asd) returns false
Testing when
✔ when is a Function
✔ should be truthy
✔ should be truthy
Testing without
✔ without is a Function
@ -1994,8 +2000,8 @@ Test log for: Wed Apr 18 2018 20:55:18 GMT+0000 (UTC)
✔ Works with multiple promises
total: 1011
passing: 1011
duration: 2.3s
total: 1014
passing: 1014
duration: 2.4s

View File

@ -1,2 +1,2 @@
const when = (pred, whenTrue) => (x) => pred(x) ? whenTrue(x) : x;
const when = (pred, whenTrue) => x => (pred(x) ? whenTrue(x) : x);
module.exports = when;