0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed offer tests

no refs

- adds default tier to a offer factory
This commit is contained in:
Rishabh 2021-10-20 18:44:38 +05:30
parent b015ac4d42
commit 01afeaa90e

View file

@ -11,5 +11,10 @@ export default Factory.extend({
amount() { return faker.datatype.number({min: 1, max: 10}); }, amount() { return faker.datatype.number({min: 1, max: 10}); },
displayTitle() { return faker.lorem.word(); }, displayTitle() { return faker.lorem.word(); },
code() { return faker.lorem.slug(); }, code() { return faker.lorem.slug(); },
createdAt() { return randomDate(); } createdAt() { return randomDate(); },
tier() {
return {
id: '1'
};
}
}); });