mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
b5ee17b25f
- We're in the process of rolling out a new e2e-framework, and getting rid of the regression tests - We'll eventually merge all the tests together and into using the same framework
24 lines
631 B
JavaScript
24 lines
631 B
JavaScript
const {agentProvider, matchers} = require('../../utils/e2e-framework');
|
|
const {anyString, 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: anyString
|
|
});
|
|
});
|
|
});
|