@@ -1081,12 +1081,13 @@ describe('delete', () => {
10811081 siteID,
10821082 } )
10831083
1084- expect ( await blobs . delete ( key ) ) . toBe ( true )
1085- expect ( await blobs . delete ( complexKey ) ) . toBe ( true )
1084+ await blobs . delete ( key )
1085+ await blobs . delete ( complexKey )
1086+
10861087 expect ( mockStore . fulfilled ) . toBeTruthy ( )
10871088 } )
10881089
1089- test ( 'Returns `false` when the blob does not exist' , async ( ) => {
1090+ test ( 'Does not throw when the blob does not exist' , async ( ) => {
10901091 const mockStore = new MockFetch ( )
10911092 . delete ( {
10921093 headers : { authorization : `Bearer ${ apiToken } ` } ,
@@ -1106,7 +1107,8 @@ describe('delete', () => {
11061107 siteID,
11071108 } )
11081109
1109- expect ( await blobs . delete ( key ) ) . toBe ( false )
1110+ await blobs . delete ( key )
1111+
11101112 expect ( mockStore . fulfilled ) . toBeTruthy ( )
11111113 } )
11121114
@@ -1149,11 +1151,12 @@ describe('delete', () => {
11491151 siteID,
11501152 } )
11511153
1152- expect ( await blobs . delete ( key ) ) . toBe ( true )
1154+ await blobs . delete ( key )
1155+
11531156 expect ( mockStore . fulfilled ) . toBeTruthy ( )
11541157 } )
11551158
1156- test ( 'Returns `false` when the blob does not exist' , async ( ) => {
1159+ test ( 'Does not throw when the blob does not exist' , async ( ) => {
11571160 const mockStore = new MockFetch ( ) . delete ( {
11581161 headers : { authorization : `Bearer ${ edgeToken } ` } ,
11591162 response : new Response ( null , { status : 404 } ) ,
@@ -1169,7 +1172,8 @@ describe('delete', () => {
11691172 siteID,
11701173 } )
11711174
1172- expect ( await blobs . delete ( key ) ) . toBe ( false )
1175+ await blobs . delete ( key )
1176+
11731177 expect ( mockStore . fulfilled ) . toBeTruthy ( )
11741178 } )
11751179
0 commit comments