@@ -250,17 +250,18 @@ describe('useCompareReplacements', () => {
250250 describe ( 'caching' , ( ) => {
251251 it ( 'retries a package after a transient fetch failure' , async ( ) => {
252252 const packageNames = ref ( [ 'is-even' ] )
253- const fetchMock = vi . fn ( )
254- . mockRejectedValueOnce ( new Error ( 'Temporary network error' ) )
255- . mockResolvedValueOnce ( {
256- mapping : { replacements : [ 'snippet::is-even' ] } ,
257- replacement : {
258- id : 'snippet::is-even' ,
259- type : 'simple' ,
260- description : 'You can use the modulo operator to check if a number is even.' ,
261- example : '(n % 2) === 0' ,
262- } satisfies SimpleModuleReplacement ,
263- } )
253+ const fetchMock = vi
254+ . fn ( )
255+ . mockRejectedValueOnce ( new Error ( 'Temporary network error' ) )
256+ . mockResolvedValueOnce ( {
257+ mapping : { replacements : [ 'snippet::is-even' ] } ,
258+ replacement : {
259+ id : 'snippet::is-even' ,
260+ type : 'simple' ,
261+ description : 'You can use the modulo operator to check if a number is even.' ,
262+ example : '(n % 2) === 0' ,
263+ } satisfies SimpleModuleReplacement ,
264+ } )
264265
265266 vi . stubGlobal ( '$fetch' , fetchMock )
266267
0 commit comments