Last active
July 23, 2020 16:19
-
-
Save bbangert/02f16330479a99b9ad9999c1a65feeea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Current test | |
assert.isTrue( | |
stripeHelper.customer.calledOnceWith({ | |
uid: reqOpts.query.uid, | |
email: reqOpts.query.email, | |
}), | |
'customer not called as expected' | |
); | |
# Better test because we see the difference in calls, vs "Expected 'true' got 'false'" above | |
sinon.assert.calledOnceWithExactly(stripeHelper.customer, { | |
uid: reqOpts.query.uid, | |
email: reqOpts.query.email, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment