insomnia/app/common/__fixtures__/nestedfolders.js
Gregory Schier 1d45367aa1 Added eslint and fixed all problems (#101)
* Fixed duplication kve bug

* Added semistandard and updated code

* Actually got it working

* Even better

* I think it should work on Windows now
2017-03-03 12:09:08 -08:00

45 lines
726 B
JavaScript

import * as models from '../../models';
export const data = {
[models.workspace.type]: [{
_id: 'wrk_1',
name: 'Wrk 1'
}],
[models.requestGroup.type]: [{
_id: 'fld_1',
parentId: 'wrk_1',
name: 'Fld 1'
}, {
_id: 'fld_2',
parentId: 'wrk_1',
name: 'Fld 2'
}, {
_id: 'fld_3',
parentId: 'fld_1',
name: 'Fld 3'
}],
[models.request.type]: [{
_id: 'req_1',
parentId: 'fld_1',
name: 'Req 1'
}, {
_id: 'req_2',
parentId: 'fld_1',
name: 'Req 2'
}, {
_id: 'req_3',
parentId: 'wrk_1',
name: 'Req 3'
}, {
_id: 'req_4',
parentId: 'fld_3',
name: 'Req 4'
}, {
_id: 'req_5',
parentId: 'wrk_1',
name: 'Req 5'
}]
};