Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Oct 24, 2023
1 parent 0955fbd commit 52c9474
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/service_disabled_email_constraint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ describe('testing identity-srv', () => {
identifier: email
});
should.exist(result.operation_status);
result.operation_status.code.should.equal(404);
result.operation_status.message.should.equal(`user not found`);
result.operation_status.code.should.equal(400);
result.operation_status.message.should.equal(`Invalid identifier provided for request password change, multiple users found for identifier ${email}`);
});
it('should successfully RequestPasswordChange with user name as identifier', async () => {
// activation_code should be empty initially
Expand Down Expand Up @@ -735,8 +735,8 @@ describe('testing identity-srv', () => {
new_email: '[email protected]'
});
should.exist(result.operation_status);
result.operation_status.code.should.equal(404);
result.operation_status.message.should.equal(`user does not exist`);
result.operation_status.code.should.equal(400);
result.operation_status.message.should.equal(`Invalid identifier provided for request email change, multiple users found for identifier ${email}`);
});
it('should change new_email field with provided email using user name as identifier', async () => {
const result = await userService.requestEmailChange({
Expand Down

0 comments on commit 52c9474

Please sign in to comment.