From bedb2adfb065c1b0d3bcb773fbeff91230402b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 23 Nov 2021 17:45:18 +0100 Subject: refactor: remove "unitTest" wrapper from cli/tests/unit (#12750) --- cli/tests/unit/esnext_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/tests/unit/esnext_test.ts') diff --git a/cli/tests/unit/esnext_test.ts b/cli/tests/unit/esnext_test.ts index 025a28003..cc5e89e80 100644 --- a/cli/tests/unit/esnext_test.ts +++ b/cli/tests/unit/esnext_test.ts @@ -1,10 +1,10 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -import { assert, assertEquals, unitTest } from "./test_util.ts"; +import { assert, assertEquals } from "./test_util.ts"; // TODO(@kitsonk) remove when we are no longer patching TypeScript to have // these types available. -unitTest(function typeCheckingEsNextArrayString() { +Deno.test(function typeCheckingEsNextArrayString() { const a = "abcdef"; assertEquals(a.at(-1), "f"); const b = ["a", "b", "c", "d", "e", "f"]; @@ -13,13 +13,13 @@ unitTest(function typeCheckingEsNextArrayString() { assertEquals(b.findLastIndex((val) => typeof val === "string"), 5); }); -unitTest(function objectHasOwn() { +Deno.test(function objectHasOwn() { const a = { a: 1 }; assert(Object.hasOwn(a, "a")); assert(!Object.hasOwn(a, "b")); }); -unitTest(function errorCause() { +Deno.test(function errorCause() { const e = new Error("test", { cause: "something" }); assertEquals(e.cause, "something"); }); -- cgit v1.2.3