mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
857464c104
- some tests were using anyString, but we have a more specific matcher available - it's best to use the most specific matcher possible
24 lines
627 B
JavaScript
24 lines
627 B
JavaScript
const {agentProvider, matchers} = require('../../utils/e2e-framework');
|
|
const {anyEtag, stringMatching} = matchers;
|
|
|
|
describe('Site API', function () {
|
|
let agent;
|
|
|
|
before(async function () {
|
|
agent = await agentProvider.getAdminAPIAgent();
|
|
});
|
|
|
|
it('can retrieve config and all expected properties', async function () {
|
|
await agent
|
|
.get('site/')
|
|
.matchBodySnapshot({
|
|
site: {
|
|
version: stringMatching(/\d+\.\d+/)
|
|
}
|
|
})
|
|
.matchHeaderSnapshot({
|
|
etag: anyEtag
|
|
});
|
|
});
|
|
});
|