MCPcopy Create free account
hub / github.com/denoland/std / assertAllOptions

Function assertAllOptions

testing/bdd_test.ts:200–204  ·  view source on GitHub ↗

* Asserts that `Deno.test` is called with all of the options for the `it` call in the callback function. * This is used to reduce code duplication when testing calling `it` with different call signatures.

(
    cb: (fn: Spy) => void,
  )

Source from the content-addressed store, hash-verified

198 * This is used to reduce code duplication when testing calling `it` with different call signatures.
199 */
200 async function assertAllOptions(
201 cb: (fn: Spy) => void,
202 ) {
203 await assertOptions(baseOptions, cb);
204 }
205
206 await t.step("signature 1", async (t) => {
207 await t.step(

Callers 1

bdd_test.tsFile · 0.85

Calls 2

assertOptionsFunction · 0.85
assertIgnoreOptionsFunction · 0.85

Tested by

no test coverage detected