Fixes #107
This commit is contained in:
@@ -2,11 +2,12 @@ import { assert } from "../../test_deps.ts";
|
||||
import { FileMeta } from "../../common/types.ts";
|
||||
import { path } from "../deps.ts";
|
||||
import fileSystemSyscalls from "./fs.deno.ts";
|
||||
import { urlToPathname } from "../util.ts";
|
||||
|
||||
const fakeCtx = {} as any;
|
||||
|
||||
Deno.test("Test FS operations", async () => {
|
||||
const thisFolder = path.dirname(new URL(import.meta.url).pathname);
|
||||
const thisFolder = path.resolve(path.dirname(urlToPathname(new URL(import.meta.url))));
|
||||
const syscalls = fileSystemSyscalls(thisFolder);
|
||||
const allFiles: FileMeta[] = await syscalls["fs.listFiles"](
|
||||
fakeCtx,
|
||||
|
||||
Reference in New Issue
Block a user