1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2026-01-05 14:39:15 +00:00

Both types of tests are now working

This commit is contained in:
Scott Tolksdorf
2017-01-06 00:48:52 -05:00
parent 5820564894
commit 66ca09b36d
5 changed files with 36 additions and 33 deletions

View File

@@ -84,15 +84,6 @@ const BrewData = {
const newBrew = new Brew(brew);
return newBrew.save();
//TODO: add error decorators to the catches
const temp = newBrew.save().then(()=>{
console.log('SAVED');
});
console.log(typeof temp, _.keys(temp), temp);
return temp;
},
update : (newBrew) => {
return Brew.findOneAndUpdate({ editId : newBrew.editId },