File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ describe("MirabufLoader", () => {
75
75
Object . defineProperty ( navigator . storage , "getDirectory" , {
76
76
value : vi . fn ( async ( ) => ( {
77
77
getDirectoryHandle : vi . fn ( async ( ) => ( {
78
- name : "Robots " ,
78
+ name : "robot " ,
79
79
getFileHandle : vi . fn ( async ( ) => ( {
80
80
createWritable : vi . fn ( async ( ) => ( {
81
81
write : vi . fn ( ) ,
@@ -156,7 +156,7 @@ describe("MirabufLoader", () => {
156
156
157
157
localStorageMock [ "Synthesis Nonce Key" ] = "4543246"
158
158
const map = { [ key ] : { id, miraType, cacheKey : key } }
159
- localStorageMock [ "Robots " ] = JSON . stringify ( map )
159
+ localStorageMock [ "robot " ] = JSON . stringify ( map )
160
160
backUpMap [ miraType ] [ id ] = {
161
161
id,
162
162
miraType,
@@ -170,7 +170,7 @@ describe("MirabufLoader", () => {
170
170
171
171
expect ( result ) . toBe ( true )
172
172
173
- const updatedMap = JSON . parse ( localStorageMock [ "Robots " ] )
173
+ const updatedMap = JSON . parse ( localStorageMock [ "robot " ] )
174
174
expect ( updatedMap [ key ] . name ) . toBe ( name )
175
175
expect ( updatedMap [ key ] . thumbnailStorageID ) . toBe ( thumbnailStorageID )
176
176
expect ( updatedMap [ key ] . id ) . toBe ( id )
You can’t perform that action at this time.
0 commit comments