Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): correct loom-import stale row test mock order

Richie McIlroy477951f1441b
diff --git a/apps/web/__tests__/unit/loom-import.test.ts b/apps/web/__tests__/unit/loom-import.test.ts
index 0ca01a418..e7785fbb5 100644
--- a/apps/web/__tests__/unit/loom-import.test.ts
+++ b/apps/web/__tests__/unit/loom-import.test.ts
@@ -137,8 +137,8 @@ describe("importFromLoom", () => {
it("removes a stale Loom row and recreates it with the Cap video id", async () => {
whereMock
.mockResolvedValueOnce([{ importedVideoId: "stale-row", videoId: null }])
- .mockResolvedValueOnce([{ id: "bucket-1" }])
- .mockResolvedValueOnce(undefined);
+ .mockResolvedValueOnce(undefined)
+ .mockResolvedValueOnce([{ id: "bucket-1" }]);
const fetchMock = vi.mocked(fetch);
fetchMock.mockImplementation(async (input) => {