evilsoft / crocks

A collection of well known Algebraic Data Types for your utter enjoyment.
https://crocks.dev
ISC License
1.59k stars 102 forks source link

Upgrading Tape to 5.x results in these tests failing #485

Open dalefrancis88 opened 4 years ago

dalefrancis88 commented 4 years ago

Have not investigated further, just raising for visibility to remember.

When attempting to upgrade Tape to latest major version, every tests passes but these

test('hasAlg fantasy-land', t => {
  const keys = Object.keys(fl)

  t.plan(keys.length * 2)

  keys.forEach(k => {
    const inst = { [fl[k]]: identity }
    const noFunc = { [fl[k]]: true }

    t.ok(hasAlg(k, inst, `returns true for ${k}, when ${fl[k]} is a function`))
    t.notOk(hasAlg(k, noFunc, `returns false for ${k}, when ${fl[k]} is not a function`))
  })
})