Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Update SPA fixture, fix the reset password test for SPA context
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert committed Feb 18, 2016
1 parent c66f262 commit 8dfa782
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions test/controllers/test-reset-password.js
Expand Up @@ -349,10 +349,7 @@ describe('resetPassword', function () {
var app = spaRootFixture.expressApp;

app.on('stormpath.ready', function () {
var config = app.get('stormpathConfig');
request(app)
.get(config.web.changePassword.uri)
.set('Accept', 'text/html')
requestResetPage(app, passwordResetToken)
.expect(200)
.end(spaRootFixture.assertResponse(done));
});
Expand Down
5 changes: 4 additions & 1 deletion test/fixtures/spa-root-fixture.js
Expand Up @@ -24,7 +24,10 @@ function SpaRootFixture(stormpathConfig) {
stormpathConfig.web = {};
}

stormpathConfig.web.spaRoot = this.filename;
stormpathConfig.web.spa = {
enabled: true,
view: this.filename
};

this.expressApp = helpers.createStormpathExpressApp(stormpathConfig);
}
Expand Down

0 comments on commit 8dfa782

Please sign in to comment.