Skip to content

Commit 1c5586a

Browse files
author
BSKY
committed
Update installer.test.ts
1 parent 6fccad9 commit 1c5586a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

__tests__/installer.test.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
import io = require("@actions/io");
2-
import fs = require("fs");
3-
import os = require("os");
4-
import path = require("path");
1+
import * as io from "@actions/io";
2+
import * as path from "path";
3+
import * as installer from "../src/installer";
54

65
const toolDir = path.join(__dirname, "runner", "tools");
76
const tempDir = path.join(__dirname, "runner", "temp");
8-
const dataDir = path.join(__dirname, "data");
97

108
process.env["RUNNER_TOOL_CACHE"] = toolDir;
119
process.env["RUNNER_TEMP"] = tempDir;
12-
import * as installer from "../src/installer";
13-
14-
const IS_WINDOWS = process.platform === "win32";
1510

1611
describe("installer tests", () => {
1712
beforeAll(async () => {
@@ -30,6 +25,5 @@ describe("installer tests", () => {
3025

3126
it("Acquires opam source", async () => {
3227
await installer.getOpam("2.0.5");
33-
const OCamldir = path.join(toolDir, "opam", "2.0.5", os.arch());
3428
}, 1000000);
3529
});

0 commit comments

Comments
 (0)