Skip to content

Instantly share code, notes, and snippets.

@jethrolarson
Created October 23, 2015 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jethrolarson/20445e0ab82416771914 to your computer and use it in GitHub Desktop.
Save jethrolarson/20445e0ab82416771914 to your computer and use it in GitHub Desktop.
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