mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Updated fixtures for site used in tests
no refs
This commit is contained in:
parent
1dab76a274
commit
399bbc0977
1 changed files with 15 additions and 3 deletions
|
@ -258,11 +258,23 @@ function getSubscriptionData({
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const testSite = getSiteData({
|
function getTestSite() {
|
||||||
products: getProductsData({numOfProducts: 1})
|
const products = getProductsData({numOfProducts: 1});
|
||||||
|
const portalProducts = products.map(p => p.id);
|
||||||
|
const portalPlans = ['free', 'monthly', 'yearly'];
|
||||||
|
return getSiteData({
|
||||||
|
products,
|
||||||
|
portalPlans,
|
||||||
|
portalProducts
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export const testSite = getTestSite();
|
||||||
|
|
||||||
|
export const site = getSiteData({
|
||||||
|
products: getProductsData({numOfProducts: 3})
|
||||||
});
|
});
|
||||||
|
|
||||||
export const site = getSiteData({});
|
|
||||||
export const offer = getOfferData({
|
export const offer = getOfferData({
|
||||||
tierId: site.products[0].id
|
tierId: site.products[0].id
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue