fix: add ok: true to fetch mocks in SearchView tests
This commit is contained in:
@@ -55,6 +55,7 @@ describe('SearchView', () => {
|
||||
{ id: 'REG001', name: 'Ibuprofeno 400mg', active_ingredient: 'Ibuprofeno', dosage: '400mg', form: 'Comprimido' },
|
||||
]
|
||||
vi.spyOn(globalThis, 'fetch').mockResolvedValue({
|
||||
ok: true,
|
||||
json: async () => medicines,
|
||||
})
|
||||
|
||||
@@ -76,6 +77,7 @@ describe('SearchView', () => {
|
||||
{ id: 'REG001', name: 'Ibuprofeno 400mg', active_ingredient: 'Ibuprofeno', dosage: '400mg', form: 'Comprimido' },
|
||||
]
|
||||
vi.spyOn(globalThis, 'fetch').mockResolvedValue({
|
||||
ok: true,
|
||||
json: async () => medicines,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user