Revert "Added new created tier e2e test"

This reverts commit dc98868961.
This commit is contained in:
Ronald Langeveld 2023-03-02 16:35:13 +08:00
parent 389362f463
commit 7c805b7176
2 changed files with 0 additions and 44 deletions

View File

@ -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 {

View File

@ -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'
})
});
});
});