Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/routes/projectMemberInvites/get.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ describe('GET Project Member Invite', () => {
should.exist(resJson);
should.exist(resJson.projectId);
resJson.id.should.be.eql(3);
resJson.email.should.be.eql('t***t@t***r.com'); // masked
// not masked, because user who is invited by email is the user who is calling this endpoint
resJson.email.should.be.eql('test@topcoder.com');
resJson.status.should.be.eql(INVITE_STATUS.PENDING);
done();
}
Expand Down
3 changes: 2 additions & 1 deletion src/routes/projectMemberInvites/list.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ describe('GET Project Member Invites', () => {
resJson.length.should.be.eql(1);
// check invitations
_.filter(resJson, inv => inv.id === 3).length.should.be.eql(1);
resJson[0].email.should.be.eql('t***t@t***r.com'); // masked
// not masked, because user who is invited by email is the user who is calling this endpoint
resJson[0].email.should.be.eql('test@topcoder.com');
done();
}
});
Expand Down