From f248050cb467eaed8d65428b8808254e26797cc5 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 25 Jul 2024 10:26:54 +1000 Subject: chore: use `@std` prefix for internal module specifiers (#24543) This change aims to replace all relative import specifiers targeted at `tests/util/std` with mapped ones (using a `deno.json` file). Towards updating the `std` git submodule. --- tests/testdata/run/onload/imported.ts | 2 +- tests/testdata/run/onload/main.ts | 2 +- tests/testdata/run/onload/nest_imported.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/testdata/run/onload') diff --git a/tests/testdata/run/onload/imported.ts b/tests/testdata/run/onload/imported.ts index 5c412bd43..38649b9b3 100644 --- a/tests/testdata/run/onload/imported.ts +++ b/tests/testdata/run/onload/imported.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file no-window-prefix -import { assert } from "../../../../tests/util/std/assert/mod.ts"; +import { assert } from "@std/assert/mod.ts"; import "./nest_imported.ts"; const handler = (e: Event) => { diff --git a/tests/testdata/run/onload/main.ts b/tests/testdata/run/onload/main.ts index e3eae99fa..c0e120d96 100644 --- a/tests/testdata/run/onload/main.ts +++ b/tests/testdata/run/onload/main.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file no-window-prefix no-prototype-builtins -import { assert } from "../../../../tests/util/std/assert/mod.ts"; +import { assert } from "@std/assert/mod.ts"; import "./imported.ts"; assert(window.hasOwnProperty("onload")); diff --git a/tests/testdata/run/onload/nest_imported.ts b/tests/testdata/run/onload/nest_imported.ts index 61af36e0a..98775d943 100644 --- a/tests/testdata/run/onload/nest_imported.ts +++ b/tests/testdata/run/onload/nest_imported.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file no-window-prefix -import { assert } from "../../../../tests/util/std/assert/mod.ts"; +import { assert } from "@std/assert/mod.ts"; const handler = (e: Event) => { assert(e.type === "beforeunload" ? e.cancelable : !e.cancelable); -- cgit v1.2.3