Skip to content

Commit

Permalink
test(valid-describe-callback): Add test case for async describe with …
Browse files Browse the repository at this point in the history
…tags
  • Loading branch information
mskelton committed Mar 7, 2024
1 parent 777ab12 commit ae78045
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rules/valid-describe-callback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ runRuleTester('valid-describe-callback', rule, {
code: 'test.describe("foo", async () => {})',
errors: [{ column: 22, line: 1, messageId: 'noAsyncDescribeCallback' }],
},
{
code: 'test.describe("foo", { tag: ["@slow"] }, async () => {})',
errors: [{ column: 42, line: 1, messageId: 'noAsyncDescribeCallback' }],
},
{
code: 'test.describe("foo", async function () {})',
errors: [{ column: 22, line: 1, messageId: 'noAsyncDescribeCallback' }],
Expand Down

0 comments on commit ae78045

Please sign in to comment.