Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
test(test-community): check that primaryEmail exists instead of prima…
Browse files Browse the repository at this point in the history
…ry_email
  • Loading branch information
LucasCharrier committed Jan 15, 2024
1 parent e959280 commit 232fb8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test-community.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,8 @@ describe('Community', () => {
});

it('should have information about user email in email service', async () => {
const res = await chai.request(app).get('/api/community/membre.expire');
console.log(res.body.emailServiceInfo);
res.body.emailServiceInfo['primary_email'].should.be.a('object');
const res = await chai.request(app).get('/api/community/membre.actif');
res.body.emailServiceInfo['primaryEmail'].should.be.a('object');
});
});
});

0 comments on commit 232fb8b

Please sign in to comment.