Fix test fail
This commit is contained in:
parent
a8a4ca2ed1
commit
cb4af9d043
1 changed files with 8 additions and 1 deletions
|
@ -92,7 +92,7 @@ export default React.createClass({
|
|||
this._unmounted = false;
|
||||
this._authLogic = new InteractiveAuth({
|
||||
authData: this.props.authData,
|
||||
doRequest: this.props.makeRequest,
|
||||
doRequest: this._requestCallback,
|
||||
setBusy: this._setBusy,
|
||||
inputs: this.props.inputs,
|
||||
stateUpdated: this._authStateUpdated,
|
||||
|
@ -168,6 +168,13 @@ export default React.createClass({
|
|||
});
|
||||
},
|
||||
|
||||
_requestCallback: function(auth) {
|
||||
// This wrapper just exists because the js-sdk passes a second
|
||||
// 'busy' param for backwards compat. This throws the tests off
|
||||
// so discard it here.
|
||||
return this.props.makeRequest(auth);
|
||||
},
|
||||
|
||||
_setBusy: function(busy) {
|
||||
// if we've started doing stuff, reset the error messages
|
||||
if (busy) {
|
||||
|
|
Loading…
Reference in a new issue