mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 14:22:07 +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`
14 lines
457 B
JavaScript
14 lines
457 B
JavaScript
import moment from 'moment';
|
|
import {Factory} from 'miragejs';
|
|
|
|
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'; }
|
|
});
|