2017-04-05 20:45:35 +03:00
|
|
|
import moment from 'moment';
|
2017-05-29 21:50:03 +03:00
|
|
|
import {Factory} from 'ember-cli-mirage';
|
2017-01-02 21:49:44 +03:00
|
|
|
|
|
|
|
export default Factory.extend({
|
|
|
|
token(i) { return `${i}-token`; },
|
|
|
|
email(i) { return `invited-user-${i}@example.com`; },
|
2017-02-27 16:11:39 +03:00
|
|
|
expires() { return moment.utc().add(1, 'day').valueOf(); },
|
2017-01-02 21:49:44 +03:00
|
|
|
createdAt() { return moment.utc().format(); },
|
|
|
|
createdBy() { return 1; },
|
|
|
|
updatedAt() { return moment.utc().format(); },
|
|
|
|
updatedBy() { return 1; },
|
2018-03-19 12:53:17 +03:00
|
|
|
status() { return 'sent'; }
|
2017-01-02 21:49:44 +03:00
|
|
|
});
|