Skip to content

Commit

Permalink
refactor: move test_util.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
satyarohith committed Mar 5, 2024
1 parent 133b390 commit cdaa729
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/unit/chmod_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
assertEquals,
assertRejects,
assertThrows,
} from "./test_util.ts";
} from "../util/test_util.ts";

Deno.test(
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/command_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
assertRejects,
assertStringIncludes,
assertThrows,
} from "./test_util.ts";
} from "../util/test_util.ts";

Deno.test(
{ permissions: { write: true, run: true, read: true } },
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/read_file_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
assertThrows,
pathToAbsoluteFileUrl,
unreachable,
} from "./test_util.ts";
} from "../util/test_util.ts";

Deno.test({ permissions: { read: true } }, function readFileSyncSuccess() {
const data = Deno.readFileSync("tests/testdata/assets/fixture.json");
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/serve_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
execCode,
fail,
tmpUnixSocketPath,
} from "./test_util.ts";
} from "../util/test_util.ts";

// Since these tests may run in parallel, ensure this port is unique to this file
const servePort = 4502;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/symlink_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
assertRejects,
assertThrows,
pathToAbsoluteFileUrl,
} from "./test_util.ts";
} from "../util/test_util.ts";

Deno.test(
{ permissions: { read: true, write: true } },
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/tls_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
assertRejects,
assertStrictEquals,
assertThrows,
} from "./test_util.ts";
} from "../util/test_util.ts";
import { BufReader, BufWriter } from "@std/io/mod.ts";
import { readAll } from "@std/streams/read_all.ts";
import { writeAll } from "@std/streams/write_all.ts";
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/write_file_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
assertRejects,
assertThrows,
unreachable,
} from "./test_util.ts";
} from "../util/test_util.ts";

Deno.test(
{ permissions: { read: true, write: true } },
Expand Down
File renamed without changes.

0 comments on commit cdaa729

Please sign in to comment.