mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +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`
19 lines
530 B
JavaScript
19 lines
530 B
JavaScript
import moment from 'moment';
|
|
import {AVAILABLE_EVENTS} from 'ghost-admin/helpers/event-name';
|
|
import {Factory} from 'miragejs';
|
|
|
|
export default Factory.extend({
|
|
name(i) { return `Integration ${i + 1}`;},
|
|
event(i) {
|
|
let event = AVAILABLE_EVENTS[i % 3];
|
|
return event.event;
|
|
},
|
|
target(i) { return `https://example.com/${i + 1}`; },
|
|
lastTriggeredAt: null,
|
|
|
|
createdAt() { return moment.utc().format(); },
|
|
createdBy: 1,
|
|
updatedAt() { return moment.utc().format(); },
|
|
updatedBy: 1
|
|
});
|