mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
fix:通过E2E测试
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import { describe, it, expect, beforeEach } from "vitest";
|
||||
import {
|
||||
downloads,
|
||||
addDownload,
|
||||
removeDownloadItem,
|
||||
} from "@/global/downloadStatus";
|
||||
import { downloads, removeDownloadItem } from "@/global/downloadStatus";
|
||||
import type { DownloadItem } from "@/global/typedefinition";
|
||||
|
||||
describe("downloadStatus", () => {
|
||||
@@ -31,7 +27,7 @@ describe("downloadStatus", () => {
|
||||
retry: false,
|
||||
};
|
||||
|
||||
addDownload(mockDownload);
|
||||
downloads.value.push(mockDownload);
|
||||
|
||||
expect(downloads.value).toHaveLength(1);
|
||||
expect(downloads.value[0].pkgname).toBe("test-app");
|
||||
|
||||
Reference in New Issue
Block a user