summaryrefslogtreecommitdiff
path: root/cli/tests/unit/text_encoding_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-11-23 14:57:51 +0100
committerGitHub <noreply@github.com>2021-11-23 14:57:51 +0100
commitd8afd5683857de83f3cc80c33322df3d65377210 (patch)
tree0ffb7f1e94994282aadc6f6c342a1884c19774ae /cli/tests/unit/text_encoding_test.ts
parentae34f8fa10f4daddde3d32cc63773d288253d4d4 (diff)
feat(test): Add more overloads for "Deno.test" (#12749)
This commit adds 4 more overloads to "Deno.test()" API. ``` // Deno.test(function testName() { }); export function test(fn: (t: TestContext) => void | Promise<void>): void; // Deno.test("test name", { only: true }, function() { }); export function test( name: string, options: Omit<TestDefinition, "name">, fn: (t: TestContext) => void | Promise<void>, ): void; // Deno.test({ name: "test name" }, function() { }); export function test( options: Omit<TestDefinition, "fn">, fn: (t: TestContext) => void | Promise<void>, ): void; // Deno.test({ only: true }, function testName() { }); export function test( options: Omit<TestDefinition, "fn" | "name">, fn: (t: TestContext) => void | Promise<void>, ): void; ```
Diffstat (limited to 'cli/tests/unit/text_encoding_test.ts')
0 files changed, 0 insertions, 0 deletions