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()
// Setup a default sequence value to return for each test
mockingoose.Counter.toReturn(
{ _id: 'dataset', sequence_value: 1 },
'findOneAndUpdate',
)
})
it('posts to the DataLad /datasets/{dsId}/snapshots/{snapshot} endpoint', async done => {