mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
5abc4e0d9b
closes TryGhost/Ghost#9433 - remove unnecessary bower deps - update mirage usage - fix tests
14 lines
465 B
JavaScript
14 lines
465 B
JavaScript
import moment from 'moment';
|
|
import {Factory} from 'ember-cli-mirage';
|
|
|
|
export default Factory.extend({
|
|
token(i) { return `${i}-token`; },
|
|
email(i) { return `invited-user-${i}@example.com`; },
|
|
expires() { return moment.utc().add(1, 'day').valueOf(); },
|
|
createdAt() { return moment.utc().format(); },
|
|
createdBy() { return 1; },
|
|
updatedAt() { return moment.utc().format(); },
|
|
updatedBy() { return 1; },
|
|
status() { return 'sent'; }
|
|
});
|