Closed memee closed 6 years ago
I'm not familiar with tape, @memee. I'll be happy to consider a proposal to restructure the assertion thunks in order to improve interoperability.
I think you can just nut call the plan and use t.end()
when test ends
i have actually done that and works fine https://github.com/safareli/free/blob/master/test/laws.js#L22
That's good to know. Thanks, Irakli. :)
You are welcome!
https://github.com/fantasyland/fantasy-laws/blob/863bdee40a17e6ad3b474e176a1536eee4b32436/src/internal/assert.js#L9
This implementation rather disables tape users from asserting in the way tape lib requires. Like having test plan:
t.plan(1)
where you declare the number of asserts.Example:
No idea come to my mind that will not turn the implementation upside down. Any idea of workarounds that will help to use other test frameworks than Mocha?