1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/cli/tests/testdata/test/steps/ignored_steps.ts

16 lines
381 B
TypeScript

Deno.test("ignored step", async (t) => {
let result = await t.step({
name: "step 1",
ignore: true,
fn: () => {
throw new Error("Fail.");
},
});
if (result !== false) throw new Error("Expected false.");
result = await t.step({
name: "step 2",
ignore: false,
fn: () => {},
});
if (result !== true) throw new Error("Expected true.");
});