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:
parent
b015ac4d42
commit
01afeaa90e
1 changed files with 6 additions and 1 deletions
|
@ -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'
|
||||||
|
};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue