1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 08:39:09 -05:00
denoland-deno/cli/tests/testdata/test/steps/ignored_steps.ts

17 lines
381 B
TypeScript
Raw Normal View History

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.");
});