diff options
Diffstat (limited to 'cli/tests/testdata/test/steps/passing_steps.ts')
| -rw-r--r-- | cli/tests/testdata/test/steps/passing_steps.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/steps/passing_steps.ts b/cli/tests/testdata/test/steps/passing_steps.ts index fbd52e2d3..38de116a7 100644 --- a/cli/tests/testdata/test/steps/passing_steps.ts +++ b/cli/tests/testdata/test/steps/passing_steps.ts @@ -9,6 +9,15 @@ Deno.test("description", async (t) => { if (!success) throw new Error("Expected the step to return true."); }); +Deno.test("description function as first arg", async (t) => { + const success = await t.step(async function step1(t) { + await t.step(function inner1() {}); + await t.step(function inner1() {}); + }); + + if (!success) throw new Error("Expected the step to return true."); +}); + Deno.test("parallel steps without sanitizers", async (t) => { // allowed await Promise.all([ |
