Skip to content

Commit 208aebb

Browse files
Update downloadFile test to use a valid URL
1 parent dce9a3e commit 208aebb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ describe("Can handle manifest", () => {
5757
describe("Misc functions", () => {
5858
it("Should be defined", async () => {
5959
expect(index.downloadFile).toBeDefined()
60+
})
61+
it("Should download file", async () => {
6062
await fs.rm("test.txt", { force: true })
61-
const download = await index.downloadFile("https://example.com", "test.txt")
63+
const download = await index.downloadFile("https://sample-files.com/downloads/documents/txt/simple.txt", "test.txt")
6264
expect(download).toBeDefined()
6365
expect(download).toBeTypeOf("boolean")
6466
expect(download).eq(true)

0 commit comments

Comments
 (0)