summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/http_test.ts
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-07 09:51:28 -0700
committerGitHub <noreply@github.com>2024-02-07 09:51:28 -0700
commitffbb1bad037528863fcc191f0eaf374211252713 (patch)
tree9928b64886a34d5e12d22cf352371e8fc8d382b2 /cli/tests/unit_node/http_test.ts
parent83d72e5c1c0b983f4b63f3f64f9a1de7600985f4 (diff)
chore(cli): Use @test_util for relative path for unit tests (#22327)
This removes the majority of `../../../../../../test_util` relative imports from the codebase, allowing us to move this code more easily in the future.
Diffstat (limited to 'cli/tests/unit_node/http_test.ts')
-rw-r--r--cli/tests/unit_node/http_test.ts10
1 files changed, 3 insertions, 7 deletions
diff --git a/cli/tests/unit_node/http_test.ts b/cli/tests/unit_node/http_test.ts
index 7b2012471..c94d05ad9 100644
--- a/cli/tests/unit_node/http_test.ts
+++ b/cli/tests/unit_node/http_test.ts
@@ -3,16 +3,12 @@
import EventEmitter from "node:events";
import http, { type RequestOptions } from "node:http";
import https from "node:https";
-import {
- assert,
- assertEquals,
- fail,
-} from "../../../test_util/std/assert/mod.ts";
-import { assertSpyCalls, spy } from "../../../test_util/std/testing/mock.ts";
+import { assert, assertEquals, fail } from "@test_util/std/assert/mod.ts";
+import { assertSpyCalls, spy } from "@test_util/std/testing/mock.ts";
import { gzip } from "node:zlib";
import { Buffer } from "node:buffer";
-import { serve } from "../../../test_util/std/http/server.ts";
+import { serve } from "@test_util/std/http/server.ts";
import { execCode } from "../unit/test_util.ts";
Deno.test("[node/http listen]", async () => {