(done)() should be called at least once
at Object. (/Users/kesara/Lab/ospec-test/test.js:3:1)
## Context
<!--
Optional: How is this issue affecting you? What are you trying to do? Providing
us context helps us reach a solution that best fits your particular needs.
-->
ospec should treat the arrow functions as same as regular functions.
ospec: Asynchronous tests doesn't work with arrow functions
ospec version: 4.0.1
Browser and OS: MacOS
Code
Following test works:
But this test with arrow function gives and error:
Steps to Reproduce
test.js
file with following:o("setTimeout calls callback", (done) => { setTimeout(done, 10) })
–––––– The 1 assertion passed in 23ms
ospec.js:181 else throw e ^
(done)()
should be called at least once at Object.