From 0fefeb5eac5c70b97083e6531a152f8249c9189a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Verit=C3=A9=20Mugabo?= Date: Thu, 12 Sep 2024 14:25:06 -0400 Subject: [PATCH] improve tests (#530) --- tests/expect-expect.test.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/expect-expect.test.ts b/tests/expect-expect.test.ts index 343e5b1..ca8b8d8 100644 --- a/tests/expect-expect.test.ts +++ b/tests/expect-expect.test.ts @@ -23,7 +23,20 @@ ruleTester.run(RULE_NAME, rule, { assert.notEqual(cleanPrCommitTitle('Something done (fixes #123)', 123), clean); assert.notEqual(cleanPrCommitTitle('Something done (#23454)', 123), clean); -});` +});`, + `import { it as base } from 'vitest' + +const it = base.extend<{ + foo: string, + bar: string +} >({ + async foo({}, use) { + await use('foo') + }, + async bar({}, use) { + await use('bar') + } +})` ], invalid: [ {