insomnia/app/backend/__fixtures__/nestedfolders.js
Gregory Schier 318c35c2cb Move a bunch of stuff to async/await (#39)
* Some minor implementations

* Some more

* Lots more

* Removed 'backend' alias

* removed all promises

* Removed a bunch of module exports stuff

* Some morE'

* Fix

* custom DNS

* Tests for DNS

* bug fix

* Some small adjustments

* Small stuff
2016-10-02 13:57:00 -07:00

45 lines
703 B
JavaScript

import * as db from '../database';
export default {
[db.workspace.type]: [{
_id: 'wrk_1',
name: 'Wrk 1'
}],
[db.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'
}],
[db.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'
}]
}