mirror of
https://github.com/documize/community.git
synced 2025-08-07 22:45:24 +02:00
WIP cleaning up mirage config file
This commit is contained in:
parent
2994aa8287
commit
4acc73174f
2 changed files with 0 additions and 90 deletions
|
@ -5,17 +5,6 @@ export default function() {
|
|||
this.namespace = 'api'; // make this `api`, for example, if your API is namespaced
|
||||
// this.timing = 400; // delay for each request, automatically set to 0 during testing
|
||||
|
||||
// this.get('/public/meta', function() {
|
||||
// return {
|
||||
// "orgId": "VzMuyEw_3WqiafcD",
|
||||
// "title": "EmberSherpa",
|
||||
// "message": "This Documize instance contains all our team documentation",
|
||||
// "url": "",
|
||||
// "allowAnonymousAccess": false,
|
||||
// "version": "11.2"
|
||||
// };
|
||||
// });
|
||||
|
||||
this.get('/public/meta', function(db) {
|
||||
return db.meta[0];
|
||||
});
|
||||
|
@ -66,18 +55,6 @@ export default function() {
|
|||
return [];
|
||||
});
|
||||
|
||||
this.get('/folders/VzMuyEw_3WqiafcG', function() {
|
||||
return {
|
||||
"id": "VzMuyEw_3WqiafcG",
|
||||
"created": "2016-05-11T15:08:24Z",
|
||||
"revised": "2016-05-11T15:08:24Z",
|
||||
"name": "My Project",
|
||||
"orgId": "VzMuyEw_3WqiafcD",
|
||||
"userId": "VzMuyEw_3WqiafcE",
|
||||
"folderType": 2
|
||||
};
|
||||
});
|
||||
|
||||
this.get('/documents', function(db, request) {
|
||||
let folder_id = request.queryParams.folder;
|
||||
|
||||
|
@ -251,54 +228,6 @@ export default function() {
|
|||
return db.folders.find(id);
|
||||
});
|
||||
|
||||
// this.get('/folders/VzMygEw_3WrtFzto', () => {
|
||||
// return {
|
||||
// "id": "VzMygEw_3WrtFzto",
|
||||
// "created": "2016-05-11T13:24:17Z",
|
||||
// "revised": "2016-05-11T13:25:51Z",
|
||||
// "name": "Test",
|
||||
// "orgId": "VzMuyEw_3WqiafcD",
|
||||
// "userId": "VzMuyEw_3WqiafcE",
|
||||
// "folderType": 1
|
||||
// };
|
||||
// });
|
||||
//
|
||||
// this.get('/folders/V0Vy5Uw_3QeDAMW9', () => {
|
||||
// return {
|
||||
// "id":"V0Vy5Uw_3QeDAMW9",
|
||||
// "created":"2016-05-25T09:39:49Z",
|
||||
// "revised":"2016-05-25T09:39:49Z",
|
||||
// "name":"Test Folder",
|
||||
// "orgId":"VzMuyEw_3WqiafcD",
|
||||
// "userId":"VzMuyEw_3WqiafcE",
|
||||
// "folderType":2
|
||||
// };
|
||||
// });
|
||||
//
|
||||
// this.get('/folders/VzMuyEw_3WqiafcG', () => {
|
||||
// return {
|
||||
// "id": "VzMuyEw_3WqiafcG",
|
||||
// "created": "2016-05-11T15:08:24Z",
|
||||
// "revised": "2016-05-11T15:08:24Z",
|
||||
// "name": "My Project",
|
||||
// "orgId": "VzMuyEw_3WqiafcD",
|
||||
// "userId": "VzMuyEw_3WqiafcE",
|
||||
// "folderType": 2
|
||||
// };
|
||||
// });
|
||||
//
|
||||
// this.get('/folders/VzMuyEw_3WqiafcG', () => {
|
||||
// return {
|
||||
// "id": "VzMuyEw_3WqiafcG",
|
||||
// "created": "2016-05-11T15:08:24Z",
|
||||
// "revised": "2016-05-11T15:08:24Z",
|
||||
// "name": "My Project",
|
||||
// "orgId": "VzMuyEw_3WqiafcD",
|
||||
// "userId": "VzMuyEw_3WqiafcE",
|
||||
// "folderType": 2
|
||||
// };
|
||||
// });
|
||||
|
||||
this.get('/organizations/VzMuyEw_3WqiafcD', () => {
|
||||
return {
|
||||
"id": "VzMuyEw_3WqiafcD",
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
import {
|
||||
documentTocEntry
|
||||
} from '../../../../helpers/document/toc-entry';
|
||||
import {
|
||||
module,
|
||||
test
|
||||
} from 'qunit';
|
||||
|
||||
module('Unit | Helper | document/toc entry');
|
||||
|
||||
test('toc entry should be not indented and not selected', function(assert) {
|
||||
let result = documentTocEntry(['node-123', 'node-321', 1]);
|
||||
assert.equal(result.toString(), "<span style='margin-left: 0px;'></span><span class=''></span>");
|
||||
});
|
||||
|
||||
test('toc entry should be indented and selected', function(assert) {
|
||||
let result = documentTocEntry(['node-123', 'node-123', 2]);
|
||||
assert.equal(result.toString(), "<span style='margin-left: 20px;'></span><span class='selected'></span>");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue