16 lines
440 B
JavaScript
16 lines
440 B
JavaScript
|
import moment from 'moment';
|
||
|
import {Factory} from 'ember-cli-mirage';
|
||
|
|
||
|
export default Factory.extend({
|
||
|
createdAt() { return moment().toISOString(); },
|
||
|
createdBy: 1,
|
||
|
name(i) { return `Label ${i}`; },
|
||
|
slug(i) { return `label-${i}`; },
|
||
|
updatedAt() { return moment().toISOString(); },
|
||
|
updatedBy: 1,
|
||
|
count() {
|
||
|
// this gets updated automatically by the label serializer
|
||
|
return {members: 0};
|
||
|
}
|
||
|
});
|