Travis build: 1978 [cron]
This commit is contained in:
File diff suppressed because one or more lines are too long
14
test/testlog
14
test/testlog
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
Reference in New Issue
Block a user