settings: move branding settings into branding.js
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user