Skip to content

Commit fdcf420

Browse files
committed
Refactor the depts.ts
1 parent 8f4c5e0 commit fdcf420

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

deps.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export {
2+
createRequire
3+
} from "https://deno.land/std@0.92.0/node/module.ts";
4+
5+
export {
6+
assert,
7+
assertExists,
8+
} from "https://deno.land/std@0.82.0/testing/asserts.ts";

mod_test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import {
2-
assert
3-
} from "https://deno.land/std@0.82.0/testing/asserts.ts";
1+
import {assert } from "./deps.ts"
42

53
import { fsselect } from "./mod.ts";
64

parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createRequire } from "https://deno.land/std@0.92.0/node/module.ts";
1+
import { createRequire } from "./deps.ts";
22

33
const require = createRequire(import.meta.url);
44

parser_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertExists } from "https://deno.land/std@0.82.0/testing/asserts.ts";
1+
import { assertExists } from "./deps.ts";
22

33
import parser from "./parser.ts";
44

select_test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Deno.test("if an existing directory entry is returned when the path is a correct
6161

6262
assert(result.length === 1);
6363
assertEquals(result[0].name, "a-folder");
64-
assertEquals(result[0].size, 0);
6564
assertEquals(result[0].isFile, false);
6665
assertEquals(result[0].isDirectory, true);
6766
assertEquals(result[0].isSymlink, false);

0 commit comments

Comments
 (0)