mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
Fixed disconnected Stripe test
refs https://github.com/TryGhost/Toolbox/issues/214 - Disconnected Stripe state is now a special case after the defaul test configuration was changed to have fake Stripe keys included mimicing configured Stripe - The disconnected state is now achieved through an API call instead of mocking internal services from the test level. This seems like a cleaner approach, although still a bit cumbersome
This commit is contained in:
parent
3a974f6e4e
commit
027d6a84a8
@ -42,10 +42,16 @@ let agent;
|
|||||||
describe('Members API without Stripe', function () {
|
describe('Members API without Stripe', function () {
|
||||||
before(async function () {
|
before(async function () {
|
||||||
agent = await agentProvider.getAdminAPIAgent();
|
agent = await agentProvider.getAdminAPIAgent();
|
||||||
await fixtureManager.init('members');
|
await fixtureManager.init();
|
||||||
await agent.loginAsOwner();
|
await agent.loginAsOwner();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
before(async function () {
|
||||||
|
await agent
|
||||||
|
.delete('/settings/stripe/connect/')
|
||||||
|
.expectStatus(200);
|
||||||
|
});
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
mockManager.mockMail();
|
mockManager.mockMail();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user