mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Revert "Added new created tier e2e test"
This reverts commit dc98868961
.
This commit is contained in:
parent
389362f463
commit
7c805b7176
@ -48,30 +48,6 @@ Object {
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`Tiers API Can create a new tier 1: [body] 1`] = `
|
||||
Object {
|
||||
"tiers": Array [
|
||||
Object {
|
||||
"active": true,
|
||||
"benefits": Array [],
|
||||
"created_at": "2023-03-02T08:10:21.752Z",
|
||||
"currency": "USD",
|
||||
"description": null,
|
||||
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
||||
"monthly_price": 100,
|
||||
"name": "new tier",
|
||||
"slug": "new-tier",
|
||||
"trial_days": 0,
|
||||
"type": "paid",
|
||||
"updated_at": null,
|
||||
"visibility": "public",
|
||||
"welcome_page_url": null,
|
||||
"yearly_price": 5000,
|
||||
},
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`Tiers API Can edit tier properties and relations 1: [body] 1`] = `
|
||||
Object {
|
||||
"meta": Object {
|
||||
|
@ -166,24 +166,4 @@ describe('Tiers API', function () {
|
||||
})
|
||||
});
|
||||
});
|
||||
it('Can create a new tier', async function () {
|
||||
const tier = {
|
||||
name: 'new tier',
|
||||
monthly_price: 100,
|
||||
currency: 'usd'
|
||||
};
|
||||
|
||||
await agent
|
||||
.post('/tiers/')
|
||||
.body({tiers: [tier]})
|
||||
.expectStatus(201)
|
||||
.matchBodySnapshot({
|
||||
tiers: Array(1).fill({
|
||||
id: matchers.anyObjectId,
|
||||
name: 'new tier',
|
||||
monthly_price: 100,
|
||||
currency: 'USD'
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user