Skip to content

Commit f23c96a

Browse files
Rename deprecated sinon reset() to resetHistory()
1 parent 545ef8f commit f23c96a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/login-consent-request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('LoginConsentRequest', () => {
8888
return LoginConsentRequest.handle(opAuthRequest)
8989
.then(() => {
9090
expect(obtainConsent).to.have.been.called()
91-
obtainConsent.reset()
91+
obtainConsent.resetHistory()
9292
})
9393
})
9494

@@ -100,7 +100,7 @@ describe('LoginConsentRequest', () => {
100100
return LoginConsentRequest.handle(opAuthRequest, skipConsent)
101101
.then(() => {
102102
expect(LoginConsentRequest.obtainConsent).to.not.have.been.called()
103-
LoginConsentRequest.obtainConsent.reset()
103+
LoginConsentRequest.obtainConsent.resetHistory()
104104
})
105105
})
106106

0 commit comments

Comments
 (0)