mirror of
https://github.com/documize/community.git
synced 2025-08-08 06:55:28 +02:00
Make tests load
This commit is contained in:
parent
76abcd6d51
commit
8624d21e53
4 changed files with 35 additions and 15 deletions
|
@ -8,7 +8,7 @@ export default function() {
|
|||
Note: these only affect routes defined *after* them!
|
||||
*/
|
||||
// this.urlPrefix = ''; // make this `http://localhost:8080`, for example, if your API is on a different server
|
||||
// this.namespace = ''; // make this `api`, for example, if your API is namespaced
|
||||
this.namespace = 'api/public'; // make this `api`, for example, if your API is namespaced
|
||||
// this.timing = 400; // delay for each request, automatically set to 0 during testing
|
||||
|
||||
/*
|
||||
|
@ -17,6 +17,8 @@ export default function() {
|
|||
/*
|
||||
GET shorthands
|
||||
|
||||
this.get()
|
||||
|
||||
// Collections
|
||||
this.get('/contacts');
|
||||
this.get('/contacts', 'users');
|
||||
|
@ -28,6 +30,12 @@ export default function() {
|
|||
this.get('/contacts/:id', ['contact', 'addresses']);
|
||||
*/
|
||||
|
||||
this.get('/authenticate', function() {
|
||||
return {
|
||||
|
||||
};
|
||||
});
|
||||
|
||||
/*
|
||||
POST shorthands
|
||||
|
||||
|
|
|
@ -94,9 +94,9 @@ export default Router.map(function() {
|
|||
path: 'widgets'
|
||||
});
|
||||
|
||||
this.route('not-found', {
|
||||
path: '/*wildcard'
|
||||
});
|
||||
// this.route('not-found', {
|
||||
// path: '/*wildcard'
|
||||
// });
|
||||
|
||||
this.route('pods', function() {});
|
||||
});
|
|
@ -24,6 +24,9 @@ module.exports = function(environment) {
|
|||
|
||||
EmberENV: {
|
||||
FEATURES: {}
|
||||
},
|
||||
"ember-cli-mirage": {
|
||||
enabled: false
|
||||
},
|
||||
APP: {}
|
||||
};
|
||||
|
@ -42,12 +45,13 @@ module.exports = function(environment) {
|
|||
ENV.APP.LOG_VIEW_LOOKUPS = false;
|
||||
// ENV.APP.LOG_TRANSITIONS = false;
|
||||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = false;
|
||||
ENV.APP.LOG_TRANSITIONS = true;
|
||||
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||
|
||||
// ENV.baseURL = '/';
|
||||
// ENV.locationType = 'none';
|
||||
// ENV.APP.rootElement = '#ember-testing';
|
||||
ENV.baseURL = '/';
|
||||
ENV.locationType = 'none';
|
||||
ENV.APP.rootElement = '#ember-testing';
|
||||
ENV['ember-cli-mirage'] = {
|
||||
enabled: true
|
||||
};
|
||||
|
||||
ENV.apiHost = "https://localhost:5001";
|
||||
// ENV.apiHost = "https://demo1.dev:5001";
|
||||
|
|
|
@ -6,15 +6,22 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Documize Tests</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> {{content-for "head"}} {{content-for "test-head"}}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{{content-for "head"}}
|
||||
{{content-for "test-head"}}
|
||||
|
||||
<link rel="stylesheet" href="assets/vendor.css">
|
||||
<link rel="stylesheet" href="assets/documize.css">
|
||||
<link rel="stylesheet" href="assets/test-support.css" /> {{content-for "head-footer"}} {{content-for "test-head-footer"}}
|
||||
<link rel="stylesheet" href="assets/test-support.css" />
|
||||
|
||||
{{content-for "head-footer"}}
|
||||
{{content-for "test-head-footer"}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{content-for "body"}} {{content-for "test-body"}}
|
||||
{{content-for "body"}}
|
||||
{{content-for "test-body"}}
|
||||
|
||||
<script src="testem.js" integrity=""></script>
|
||||
<script src="assets/vendor.js"></script>
|
||||
|
@ -23,7 +30,8 @@
|
|||
<script src="assets/tests.js"></script>
|
||||
<script src="assets/test-loader.js"></script>
|
||||
|
||||
{{content-for "body-footer"}} {{content-for "test-body-footer"}}
|
||||
{{content-for "body-footer"}}
|
||||
{{content-for "test-body-footer"}}
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue