mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Fixed offer tests
no refs - adds new product fixtures - allows loading of products data for offers page
This commit is contained in:
parent
0459a1ca23
commit
b55ff582b8
24
ghost/admin/mirage/fixtures/products.js
Normal file
24
ghost/admin/mirage/fixtures/products.js
Normal file
@ -0,0 +1,24 @@
|
||||
/* eslint-disable camelcase */
|
||||
export default [
|
||||
{
|
||||
id: 1,
|
||||
name: 'Test Product',
|
||||
slug: 'test-product',
|
||||
monthly_price: {
|
||||
interval: 'month',
|
||||
nickname: 'Monthly',
|
||||
currency: 'usd',
|
||||
amount: 500
|
||||
},
|
||||
yearly_price: {
|
||||
interval: 'year',
|
||||
nickname: 'Yearly',
|
||||
currency: 'usd',
|
||||
amount: 5000
|
||||
},
|
||||
created_at: '2015-11-13T16:01:29.131Z',
|
||||
created_by: 1,
|
||||
updated_at: '2015-11-13T16:01:29.131Z',
|
||||
updated_by: 1
|
||||
}
|
||||
];
|
@ -35,6 +35,7 @@ describe('Acceptance: Offers', function () {
|
||||
|
||||
describe('as owner', function () {
|
||||
beforeEach(async function () {
|
||||
this.server.loadFixtures('products');
|
||||
enableLabsFlag(this.server, 'offers');
|
||||
|
||||
let role = this.server.create('role', {name: 'Owner'});
|
||||
|
Loading…
Reference in New Issue
Block a user