add tests

This commit is contained in:
yazeedb
2018-04-18 20:49:43 -04:00
parent 9a32a712d1
commit c5d0eb86a5
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;