mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
28 lines
632 B
JavaScript
28 lines
632 B
JavaScript
|
const {
|
||
|
agentProvider,
|
||
|
fixtureManager,
|
||
|
mockManager
|
||
|
} = require('../../utils/e2e-framework');
|
||
|
|
||
|
describe.only('Collections API', function () {
|
||
|
let agent;
|
||
|
|
||
|
before(async function () {
|
||
|
agent = await agentProvider.getAdminAPIAgent();
|
||
|
await fixtureManager.init('users');
|
||
|
await agent.loginAsOwner();
|
||
|
});
|
||
|
|
||
|
afterEach(function () {
|
||
|
mockManager.restore();
|
||
|
});
|
||
|
|
||
|
it('Can browse Collections', async function () {
|
||
|
await agent
|
||
|
.get('/collections/')
|
||
|
.expectStatus(200)
|
||
|
.matchHeaderSnapshot()
|
||
|
.matchBodySnapshot();
|
||
|
});
|
||
|
});
|