#deno testing done
1 messages · Page 1 of 1 (latest)
Like this? ```js
import { it } from "https://deno.land/[email protected]/testing/bdd.ts";
it("My test", () => new Promise(done => {
// test test
done()
}))
Oh, that's pretty cool!
1 messages · Page 1 of 1 (latest)
In test frameworks known from node.js (e. g. mocha) there is the done function as argument of the function passed to it.
Is there a way to get the same functionality in deno?
Like this? ```js
import { it } from "https://deno.land/[email protected]/testing/bdd.ts";
it("My test", () => new Promise(done => {
// test test
done()
}))
Oh, that's pretty cool!