Skip to content

Commit

Permalink
e2e test: fixes outdated hash
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed May 25, 2024
1 parent 636b70e commit e18021c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/__tests__/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const fs = require("fs");

test("Must download a file correctly", async function () {
let tmp = genTemp("download-success-test");
let indexHTMLPath = path.join(tmp, "index.html");
let tarballPath = path.join(tmp, "tarball");
await download(
"https://esy.sh#sha1:11f4a06342b45dbf9656cb7c2c11a48ee1055c6e",
indexHTMLPath,
"https://github.com/esy/test-hello-c/archive/refs/tags/0.1.0.tar.gz#b347c1eb3db9a55ad9cee916d5ca16a104843b45",
tarballPath,
);
expect(fs.existsSync(indexHTMLPath)).toBe(true);
expect(fs.existsSync(tarballPath)).toBe(true);
});

0 comments on commit e18021c

Please sign in to comment.