Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Feb 27, 2024
1 parent 050dcdb commit 25b7f90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/copy-file.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import {describe, test} from "vitest";
import fs from "fs-extra";
import {DownloadEngineFetchStreamLocalFile, DownloadEngineFile, downloadFile} from "../src/index.js";
import DownloadEngineWriteStreamBrowser
from "../src/download/download-engine/streams/download-engine-write-stream/download-engine-write-stream-browser.js";
import {createDownloadFile, TEXT_FILE_EXAMPLE} from "./utils/download.js";
import {fileHash} from "./utils/hash.js";
import {copyFileTest} from "./utils/copy.js";
import {downloadFile} from "../src/index.js";
import DownloadEngineFetchStreamLocalFile
from "../src/download/download-engine/streams/download-engine-fetch-stream/download-engine-fetch-stream-local-file.js";
import DownloadEngineFile from "../src/download/download-engine/download-engine-file.js";

describe("File Copy", async () => {

Expand Down
4 changes: 3 additions & 1 deletion test/download.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import {describe, test} from "vitest";
import {DownloadEngineFetchStreamFetch, DownloadEngineFile} from "../src/index.js";
import {ChunkStatus} from "../src/download/download-engine/types.js";
import DownloadEngineWriteStreamBrowser
from "../src/download/download-engine/streams/download-engine-write-stream/download-engine-write-stream-browser.js";
import {BIG_IMAGE} from "./utils/files.js";
import {createDownloadFile} from "./utils/download.js";
import DownloadEngineFetchStreamFetch
from "../src/download/download-engine/streams/download-engine-fetch-stream/download-engine-fetch-stream-fetch.js";
import DownloadEngineFile from "../src/download/download-engine/download-engine-file.js";

describe("File Download", () => {
test.concurrent("Parallel connection download", async (context) => {
Expand Down

0 comments on commit 25b7f90

Please sign in to comment.