mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Don't rely on hardcoded URL
This commit is contained in:
parent
de33ceab41
commit
9f3cd1b4da
1 changed files with 0 additions and 8 deletions
|
|
@ -6,7 +6,6 @@ import { unlinkSync, writeFileSync } from "node:fs";
|
||||||
import { createHash } from "node:crypto";
|
import { createHash } from "node:crypto";
|
||||||
import {
|
import {
|
||||||
DOWNLOAD_URLS,
|
DOWNLOAD_URLS,
|
||||||
getAgentDownloadUrl,
|
|
||||||
verifyChecksum,
|
verifyChecksum,
|
||||||
} from "./downloadAgent.js";
|
} from "./downloadAgent.js";
|
||||||
|
|
||||||
|
|
@ -35,13 +34,6 @@ describe("downloadAgent", () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
it("builds agent download URLs from the current version", () => {
|
|
||||||
assert.equal(
|
|
||||||
getAgentDownloadUrl("SafeChainUltimate.pkg"),
|
|
||||||
"https://github.com/AikidoSec/safechain-internals/releases/download/v1.0.0/SafeChainUltimate.pkg",
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("verifies checksum for a local file", async () => {
|
it("verifies checksum for a local file", async () => {
|
||||||
const destPath = join(tmpdir(), `safe-chain-test-${Date.now()}`);
|
const destPath = join(tmpdir(), `safe-chain-test-${Date.now()}`);
|
||||||
tempFiles.push(destPath);
|
tempFiles.push(destPath);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue