Skip to content

Commit 220236f

Browse files
committed
fixed coverage
1 parent b408ac5 commit 220236f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spec/Idempotency.spec.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,7 @@ describe_only_db('mongo')('Idempotency', () => {
229229
});
230230

231231
it('should re-throw any other error unchanged when writing request entry fails for any other reason', async () => {
232-
// Throw on DB write
233-
spyOn(rest, 'create').and.callFake(() => {
234-
throw new Parse.Error(0, "some other error");
235-
});
236-
// Run function
232+
spyOn(rest, 'create').and.rejectWith(new Parse.Error(0, "some other error"));
237233
Parse.Cloud.define('myFunction', () => {});
238234
const params = {
239235
method: 'POST',

0 commit comments

Comments
 (0)