We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dce9a3e commit 208aebbCopy full SHA for 208aebb
api.test.js
@@ -57,8 +57,10 @@ describe("Can handle manifest", () => {
57
describe("Misc functions", () => {
58
it("Should be defined", async () => {
59
expect(index.downloadFile).toBeDefined()
60
+ })
61
+ it("Should download file", async () => {
62
await fs.rm("test.txt", { force: true })
- 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")
64
expect(download).toBeDefined()
65
expect(download).toBeTypeOf("boolean")
66
expect(download).eq(true)
0 commit comments