Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
mockingoose.resetAll()
mockingoose.Dataset.toReturn(
[
{
datasets: [
{
_id: ObjectID('5bef51a1ed211400c08e5524'),
id: 'ds001001',
created: new Date('2018-11-16T23:24:17.203Z'),
modified: new Date('2018-11-16T23:24:25.050Z'),
uploader: 'f8d5a57c-879a-40e6-b151-e34c4a28ff70',
revision: '262a8e610e32b5766cbf669acc71911c1ece7126',
},
],
count: 1,
},
],
'aggregate',