fix tests

This commit is contained in:
Girish Ramakrishnan
2025-07-15 09:07:23 +02:00
parent bb257f2bf2
commit be9adb64bb
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -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);
});
});
});