mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
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};
|
||
|
}
|
||
|
});
|