Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8b6feae

Browse files
committedFeb 11, 2020
fix tests
1 parent a64329b commit 8b6feae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎__tests__/actions/__snapshots__/smp.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`smp.deleteSubmissionDone 1`] = `
44
Object {
5+
"payload": Promise {},
56
"type": "SMP/DELETE_SUBMISSION_DONE",
67
}
78
`;

‎src/actions/smp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function deleteSubmissionDone(tokenV5, submissionId) {
2828

2929
// from the legacy submissionId first get the GUID of the submission
3030
// and pass that id to the V5 api
31-
submissionsService.getSubmissions(filters, {})
31+
return submissionsService.getSubmissions(filters, {})
3232
.then((submissions) => {
3333
if (submissions.length === 0) {
3434
throw new Error(`Submission ${submissionId} does not exist.`);

0 commit comments

Comments
 (0)