fix tests
This commit is contained in:
@@ -53,7 +53,7 @@ describe('Profile API', function () {
|
||||
expect(response.body.displayName).to.be.a('string');
|
||||
expect(response.body.password).to.not.be.ok();
|
||||
expect(response.body.salt).to.not.be.ok();
|
||||
expect(response.body.language).to.be('');
|
||||
expect(response.body.language).to.be(null);
|
||||
});
|
||||
|
||||
it('fails with expired token', async function () {
|
||||
@@ -415,7 +415,7 @@ describe('Profile API', function () {
|
||||
|
||||
it('did reset language', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/profile`).query({ access_token: user.token });
|
||||
expect(response.body.language).to.contain('');
|
||||
expect(response.body.language).to.be(null);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user