Skip to content

Commit 6834707

Browse files
committed
Use proper promise instead of a random one
1 parent 2a7a6c3 commit 6834707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ describe("ContactFormComponent", () => {
2323
touched = false
2424
error = null
2525
resetForm = sinon.spy()
26-
onSave = sinon.stub()
27-
onSave.returns(Promise.resolve())
2826
onSaveResponse = Promise.resolve()
27+
onSave = sinon.stub()
28+
onSave.returns(onSaveResponse)
2929
})
3030
const buildSubject = () => {
3131
const props = {

0 commit comments

Comments
 (0)