Skip to content

Commit

Permalink
Fixes failing token flow tests due to error object not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetmahabaleshwar-okta committed Apr 17, 2020
1 parent 654f9e1 commit 68bbf34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/app/src/testApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Object.assign(TestApp.prototype, {
});
},
renderError: function(e) {
const xhrError = e && e.xhr ? e.xhr.message : '';
const xhrError = e && e.xhr ? (e.xhr.message || 'Network request failed') : '';
this._setContent(`
<div id="error" style="color: red">${e.toString()}</div>
<div id="xhr-error" style="color: red">${xhrError}</div>
Expand Down Expand Up @@ -344,7 +344,7 @@ Object.assign(TestApp.prototype, {
${ tokensHTML({idToken, accessToken})}
`;
}

// Unauthenticated user, Login page
return `
<strong>Greetings, unknown user!</strong>
Expand Down

0 comments on commit 68bbf34

Please sign in to comment.