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