settings: move branding settings into branding.js

This commit is contained in:
Girish Ramakrishnan
2023-08-02 21:01:11 +05:30
parent 85a73af303
commit e0d07c3c19
11 changed files with 104 additions and 127 deletions

View File

@@ -26,7 +26,7 @@ describe('Branding API', function () {
.query({ access_token: owner.token });
expect(response.statusCode).to.equal(200);
expect(response.body.name).to.be.ok();
expect(response.body.name).to.be('Cloudron');
});
it('cannot set without name', async function () {
@@ -49,7 +49,7 @@ describe('Branding API', function () {
it('set succeeds', async function () {
const response = await superagent.post(`${serverUrl}/api/v1/branding/cloudron_name`)
.query({ access_token: owner.token })
.send({ name: name });
.send({ name });
expect(response.statusCode).to.equal(200);
});