Skip to content

Commit

Permalink
test: should call register function here
Browse files Browse the repository at this point in the history
  • Loading branch information
atifcppprogrammer committed Feb 15, 2024
1 parent 6263e4b commit 133f71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sdk/KindeClient.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ import sinon from 'sinon';
req.query = { post_login_redirect_url: '/post-login-url' };
req.headers.cookie = `kindeSessionId=${sessionId}`;
KindeManagementApi.SessionStore.setData(sessionId, {});
await instance.login()(req, res, next);
await instance.register()(req, res, next);
const cachedPostLoginParam = KindeManagementApi.SessionStore.getDataByKey(sessionId, 'kindePostLoginRedirectUrl');
expect(cachedPostLoginParam).to.be(req.query.post_login_redirect_url);
});
Expand Down

0 comments on commit 133f71d

Please sign in to comment.