0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 13:42:38 +00:00

fix the damn thing

This commit is contained in:
Víctor Losada Hernández
2025-05-24 22:35:29 +02:00
parent 215abbf2f7
commit a7f8ff5212

View File

@@ -779,12 +779,16 @@ brew`);
...hbBrew,
authors : ['test', 'test2']
};
api.getBrew = jest.fn(()=>async (req)=>{
req.brew = brew;
});
model.findOne = jest.fn(async ()=>modelBrew(brew));
model.deleteOne = jest.fn(async ()=>{});
const req = { account: { username: 'test' } };
const req = {
account : { username: 'test' },
params : { author: 'test' }
};
await api.deleteAuthor(req, res);