Updated tests for member endpoint

refs https://github.com/TryGhost/Team/issues/560
refs 196cdafe6b

Last commit updated the response status for member endpoint  - `/members/api/member` - from 401 to 204. This change updates the test to handle new response code.
This commit is contained in:
Rishabh 2021-05-13 15:35:14 +05:30
parent 196cdafe6b
commit c6eafeb89b

View File

@ -73,7 +73,7 @@ describe('Front-end members behaviour', function () {
it('should error for invalid member token on member data endpoint', async function () {
await request.get('/members/api/member')
.expect(401);
.expect(204);
});
it('should serve member site endpoint', async function () {