2022-02-22 10:57:49 +07:00
|
|
|
const {agentProvider, fixtureManager, matchers} = require('../../utils/e2e-framework');
|
2020-06-23 23:39:05 +12:00
|
|
|
|
2019-02-04 15:49:59 +01:00
|
|
|
describe('Settings Content API', function () {
|
2022-02-22 10:57:49 +07:00
|
|
|
let agent;
|
2020-11-30 14:25:22 +00:00
|
|
|
|
|
|
|
before(async function () {
|
2022-02-22 10:57:49 +07:00
|
|
|
agent = await agentProvider.getContentAPIAgent();
|
|
|
|
await fixtureManager.init('api_keys');
|
|
|
|
agent.authenticate();
|
2019-01-03 15:23:22 +00:00
|
|
|
});
|
|
|
|
|
2020-11-30 14:25:22 +00:00
|
|
|
it('Can request settings', async function () {
|
2022-02-22 10:57:49 +07:00
|
|
|
await agent.get('settings/')
|
|
|
|
.expectStatus(200)
|
|
|
|
.matchHeaderSnapshot()
|
|
|
|
.matchBodySnapshot();
|
2019-01-03 15:23:22 +00:00
|
|
|
});
|
|
|
|
});
|