0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00
This commit is contained in:
G.Ambatte
2023-06-26 18:06:37 +12:00
parent c5f4793c23
commit 3d47b5a0bc

View File

@@ -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(()=>{});