mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
c4c48d4104
refs https://github.com/TryGhost/Admin/pull/2209 - `miragejs` has been extracted to a framework-independent library, the re-exports of `miragejs` elements in `ember-cli-mirage` have been deprecated making our test logs very noisy - added `miragejs` as a top-level dependency - updated all relevant imports to pull from `miragejs` instead of `ember-cli-mirage`
27 lines
618 B
JavaScript
27 lines
618 B
JavaScript
import {Factory} from 'miragejs';
|
|
|
|
export default Factory.extend({
|
|
name(i) { return `Product ${i}`; },
|
|
description(i) { return `Description for product ${i}`; },
|
|
active: true,
|
|
slug(i) { return `product-${i}`;},
|
|
type: 'paid',
|
|
visibility: 'none',
|
|
monthly_price() {
|
|
return {
|
|
interval: 'month',
|
|
nickname: 'Monthly',
|
|
currency: 'usd',
|
|
amount: 500
|
|
};
|
|
},
|
|
yearly_price() {
|
|
return {
|
|
interval: 'year',
|
|
nickname: 'Yearly',
|
|
currency: 'usd',
|
|
amount: 5000
|
|
};
|
|
}
|
|
});
|