mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-24 12:07:03 +00:00
Fix test
This commit is contained in:
1 parent
c5f4793c23
commit
3d47b5a0bc
1 file changed
+1
-1
@@ -544,7 +544,7 @@ brew`);
|
||||
describe('deleteBrew', ()=>{
|
||||
it('should handle case where fetching the brew returns an error', async ()=>{
|
||||
api.getBrew = jest.fn(()=>async ()=>{ throw 'err'; });
|
||||
api.getId = jest.fn(()=>({ id: '1', googleId: '2' }));
|
||||
api.getId = jest.fn(()=>({ id: '1', googleId: '2', HBErrorCode: '02' }));
|
||||
model.deleteOne = jest.fn(async ()=>{});
|
||||
const next = jest.fn(()=>{});
|
||||
|
||||
|
||||
Reference in new issue
Block a user