Skip to content

Commit ba33075

Browse files
committed
fix: update tests to use new dir
1 parent 3cdf18d commit ba33075

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fission/src/test/mirabuf/MirabufLoader.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe("MirabufLoader", () => {
7575
Object.defineProperty(navigator.storage, "getDirectory", {
7676
value: vi.fn(async () => ({
7777
getDirectoryHandle: vi.fn(async () => ({
78-
name: "Robots",
78+
name: "robot",
7979
getFileHandle: vi.fn(async () => ({
8080
createWritable: vi.fn(async () => ({
8181
write: vi.fn(),
@@ -156,7 +156,7 @@ describe("MirabufLoader", () => {
156156

157157
localStorageMock["Synthesis Nonce Key"] = "4543246"
158158
const map = { [key]: { id, miraType, cacheKey: key } }
159-
localStorageMock["Robots"] = JSON.stringify(map)
159+
localStorageMock["robot"] = JSON.stringify(map)
160160
backUpMap[miraType][id] = {
161161
id,
162162
miraType,
@@ -170,7 +170,7 @@ describe("MirabufLoader", () => {
170170

171171
expect(result).toBe(true)
172172

173-
const updatedMap = JSON.parse(localStorageMock["Robots"])
173+
const updatedMap = JSON.parse(localStorageMock["robot"])
174174
expect(updatedMap[key].name).toBe(name)
175175
expect(updatedMap[key].thumbnailStorageID).toBe(thumbnailStorageID)
176176
expect(updatedMap[key].id).toBe(id)

0 commit comments

Comments
 (0)