Skip to content

Commit f61687c

Browse files
committed
feat: temporary disable masking emails inside invites, part 2
fix some unit tests
1 parent 9e528d4 commit f61687c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/routes/projectMemberInvites/create.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ describe('Project Member Invite create', () => {
353353
should.exist(resJson);
354354
resJson.role.should.equal('customer');
355355
resJson.projectId.should.equal(project2.id);
356-
resJson.email.should.equal('he**o@wo**d.com'); // email is masked
356+
// temporary disable this feature, because it has some side effects
357+
// resJson.email.should.equal('he**o@wo**d.com'); // email is masked
358+
resJson.email.should.equal('hello@world.com');
357359
server.services.pubsub.publish.calledWith('project.member.invite.created').should.be.true;
358360
done();
359361
}
@@ -407,7 +409,9 @@ describe('Project Member Invite create', () => {
407409
resJson.role.should.equal('customer');
408410
resJson.projectId.should.equal(project2.id);
409411
resJson.userId.should.equal(12345);
410-
resJson.email.should.equal('he**o@wo**d.com'); // email is masked
412+
// temporary disable this feature, because it has some side effects
413+
// resJson.email.should.equal('he**o@wo**d.com'); // email is masked
414+
resJson.email.should.equal('hello@world.com');
411415
server.services.pubsub.publish.calledWith('project.member.invite.created').should.be.true;
412416
done();
413417
}

0 commit comments

Comments
 (0)