Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Dec 7, 2023
1 parent 96f87ed commit 7589cd5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions denops/denippet/loader_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ import { Loader } from "./loader.ts";
import { op, test } from "./deps/denops.ts";
import { assertEquals, path } from "./deps/std.ts";

const testDataDir = new URL("../../test/data", import.meta.url).pathname;

test({
mode: "all",
name: "loader",
fn: async (denops, t) => {
const testDataDir = new URL("../../test/data", import.meta.url).pathname;
const loader = new Loader(denops);

for await (const file of Deno.readDir(new URL("../..", import.meta.url).pathname)) {
console.log(file);
}

await loader.load(path.join(testDataDir, "global.json"), "*");
await loader.load(path.join(testDataDir, "typescript.toml"), "typescript");
await loader.load(path.join(testDataDir, "lua.yaml"), "lua");
Expand Down

0 comments on commit 7589cd5

Please sign in to comment.