add tests

This commit is contained in:
yazeedb
2018-04-18 20:49:43 -04:00
parent 35c0412b40
commit 3116d19997
2 changed files with 20 additions and 0 deletions

2
test/when/when.js Normal file
View File

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