1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-07 22:45:24 +02:00

Add factories to refactor cleanup mirage config

This commit is contained in:
zinyando 2016-06-08 15:09:08 +02:00
parent 97d2bd2a0e
commit 99e4057fad
4 changed files with 27 additions and 9 deletions

View file

@ -0,0 +1,11 @@
import Mirage, {faker} from 'ember-cli-mirage';
export default Mirage.Factory.extend({
"id": faker.list.cycle('VzMuyEw_3WqiafcG', 'VzMygEw_3WrtFzto'),
"created": "2016-05-11T15:08:24Z",
"revised": "2016-05-11T15:08:24Z",
"name": faker.list.cycle('My Project', 'Test'),
"orgId": "VzMuyEw_3WqiafcD",
"userId": "VzMuyEw_3WqiafcE",
"folderType": faker.list.cycle(1, 2)
});

View file

@ -0,0 +1,8 @@
import Mirage, {faker} from 'ember-cli-mirage';
export default Mirage.Factory.extend({
"folderId":"VzMuyEw_3WqiafcG",
"userId":"VzMuyEw_3WqiafcE",
"canView":true,
"canEdit":true
});

View file

@ -1,14 +1,5 @@
import Mirage from 'ember-cli-mirage'; import Mirage from 'ember-cli-mirage';
// export default Mirage.Factory.extend({
// orgId() { return 'VzMuyEw_3WqiafcD'; },
// title() { return 'EmberSherpa'; },
// message() { return 'This Documize instance contains all our team documentation'; },
// url() { return ''; },
// allowAnonymousAccess() { return false; },
// version() { return '11.2'; }
// });
export default Mirage.Factory.extend({ export default Mirage.Factory.extend({
"orgId": "VzMuyEw_3WqiafcD", "orgId": "VzMuyEw_3WqiafcD",
"title": "EmberSherpa", "title": "EmberSherpa",

View file

@ -0,0 +1,8 @@
import Mirage, {faker} from 'ember-cli-mirage';
export default Mirage.Factory.extend({
"folderId": faker.list.cycle('V0Vy5Uw_3QeDAMW9', 'VzMuyEw_3WqiafcG', 'VzMygEw_3WrtFzto', 'VzMygEw_3WrtFzto'),
"userId": faker.list.cycle('VzMuyEw_3WqiafcE', 'VzMuyEw_3WqiafcE', 'VzMuyEw_3WqiafcE', ''),
"canView":true,
"canEdit": faker.list.cycle(true, true, true, false)
});