Skip to content

Commit

Permalink
isSet fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sadasant committed Feb 27, 2017
1 parent f6ab2cd commit 4151480
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/algebras.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ describe('Algebras', () => {
return s
}

const is = s => Object.prototype.toString.call(s) === '[object Set]'

const setMutated = f.deepMap(s => s.add(101), setRoot, map, is)
const setMutated = f.deepMap(s => s.add(101), setRoot, map, _.isSet)

expect(JSON.stringify(setMutated)).to.equal('[0,[1,[2,101],101]]')
})
Expand Down

0 comments on commit 4151480

Please sign in to comment.