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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user