Created
October 23, 2015 00:35
-
-
Save jethrolarson/20445e0ab82416771914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FT = require('myFunctionalTestFramework'); | |
module.exports = FT.suite("Array", { | |
"is a functor": (it)=> { | |
var ar = [1] | |
return it.all( | |
it('returns array with value incremented').isLike([2], ar.map(x=>x+1)) | |
, it('returns new array').isnt(ar, ar.map(a => a)) | |
) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment