Skip to content

Commit 49d3756

Browse files
authored
Merge pull request #551 from topcoder-platform/hotfix/post-release-2.3.1
[HOTFIX] [DEV] Post release 2.3.1 - fix unit tests
2 parents 98d2fde + 356405e commit 49d3756

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/routes/projectMemberInvites/get.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ describe('GET Project Member Invite', () => {
227227
should.exist(resJson);
228228
should.exist(resJson.projectId);
229229
resJson.id.should.be.eql(3);
230-
resJson.email.should.be.eql('t***t@t***r.com'); // masked
230+
// not masked, because user who is invited by email is the user who is calling this endpoint
231+
resJson.email.should.be.eql('test@topcoder.com');
231232
resJson.status.should.be.eql(INVITE_STATUS.PENDING);
232233
done();
233234
}

src/routes/projectMemberInvites/list.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ describe('GET Project Member Invites', () => {
252252
resJson.length.should.be.eql(1);
253253
// check invitations
254254
_.filter(resJson, inv => inv.id === 3).length.should.be.eql(1);
255-
resJson[0].email.should.be.eql('t***t@t***r.com'); // masked
255+
// not masked, because user who is invited by email is the user who is calling this endpoint
256+
resJson[0].email.should.be.eql('test@topcoder.com');
256257
done();
257258
}
258259
});

0 commit comments

Comments
 (0)