settings: remove appstore listing config
this is not used anymore
This commit is contained in:
@@ -97,77 +97,6 @@ describe('Branding API', function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe('appstore listing config', function () {
|
||||
it('get default succeeds', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/branding/appstore_listing_config`)
|
||||
.query({ access_token: owner.token });
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
expect(response.body.whitelist).to.eql(null);
|
||||
expect(response.body.blacklist).to.eql([]);
|
||||
});
|
||||
|
||||
it('cannot set with no bl or wl', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/branding/appstore_listing_config`)
|
||||
.query({ access_token: owner.token })
|
||||
.ok(() => true);
|
||||
|
||||
expect(response.statusCode).to.equal(400);
|
||||
});
|
||||
|
||||
it('cannot set bad bl', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/branding/appstore_listing_config`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({ blacklist: [ 1 ] })
|
||||
.ok(() => true);
|
||||
|
||||
expect(response.statusCode).to.equal(400);
|
||||
});
|
||||
|
||||
it('cannot set bad wl', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/branding/appstore_listing_config`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({ whitelist: 4 })
|
||||
.ok(() => true);
|
||||
|
||||
expect(response.statusCode).to.equal(400);
|
||||
});
|
||||
|
||||
it('set bl succeeds', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/branding/appstore_listing_config`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({ blacklist: [ 'id1', 'id2' ] });
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
});
|
||||
|
||||
it('get bl succeeds', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/branding/appstore_listing_config`)
|
||||
.query({ access_token: owner.token });
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
expect(response.body.blacklist).to.eql([ 'id1', 'id2' ]);
|
||||
expect(response.body.whitelist).to.be(undefined);
|
||||
});
|
||||
|
||||
it('set wl succeeds', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/branding/appstore_listing_config`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({ whitelist: [ 'id1', 'id2' ] });
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
});
|
||||
|
||||
it('get wl succeeds', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/branding/appstore_listing_config`)
|
||||
.query({ access_token: owner.token });
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
expect(response.body.whitelist).to.eql([ 'id1', 'id2' ]);
|
||||
expect(response.body.blacklist).to.be(undefined);
|
||||
});
|
||||
});
|
||||
|
||||
describe('footer', function () {
|
||||
it('get default succeeds', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/branding/footer`)
|
||||
|
||||
Reference in New Issue
Block a user