Ghost/test/e2e-api/content/settings.test.js
Naz 1309a8144f Converted settings e2e test to use test-framework
refs https://github.com/TryGhost/Toolbox/issues/215

- The conversion should serve as a reference test. It was also a massive LoC drop when converting, felt almost criminal not to do it!
2022-02-24 00:47:09 +13:00

19 lines
527 B
JavaScript

const {agentProvider, fixtureManager, matchers} = require('../../utils/e2e-framework');
describe('Settings Content API', function () {
let agent;
before(async function () {
agent = await agentProvider.getContentAPIAgent();
await fixtureManager.init('api_keys');
agent.authenticate();
});
it('Can request settings', async function () {
await agent.get('settings/')
.expectStatus(200)
.matchHeaderSnapshot()
.matchBodySnapshot();
});
});