0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 23:52:40 +00:00

Clean up tests

This commit is contained in:
Trevor Buckner
2023-02-18 13:48:02 -05:00
parent 1fb7fe2487
commit 298a10bc42
3 changed files with 4 additions and 11 deletions

View File

@@ -32,6 +32,7 @@ describe('Tests for api', ()=>{
delete this.save;
delete this.toObject;
delete this.remove;
delete this.markModified;
return this;
}
});
@@ -444,7 +445,6 @@ brew`);
description : '',
editId : expect.any(String),
gDrive : false,
markModified : expect.any(Function),
pageCount : 1,
published : false,
renderer : 'V3',
@@ -508,7 +508,6 @@ brew`);
renderer : undefined,
shareId : expect.any(String),
googleId : expect.any(String),
markModified : expect.any(Function),
style : undefined,
systems : [],
tags : [],
@@ -722,7 +721,7 @@ brew`);
await api.deleteBrew(req, res);
expect(api.getBrew).toHaveBeenCalled();
// expect(markModifiedFunc).toHaveBeenCalled();
expect(markModifiedFunc).toHaveBeenCalled();
expect(model.findOne).toHaveBeenCalled();
expect(removeFunc).not.toHaveBeenCalled();
expect(api.deleteGoogleBrew).toHaveBeenCalled();