settings: remove appstore listing config

this is not used anymore
This commit is contained in:
Girish Ramakrishnan
2023-08-02 20:18:00 +05:30
parent be4c3575fb
commit 85a73af303
4 changed files with 2 additions and 147 deletions
-71
View File
@@ -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`)