1
0
Fork 0
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:
zinyando 2016-05-12 16:40:40 +02:00
parent 76abcd6d51
commit 8624d21e53
4 changed files with 35 additions and 15 deletions

View file

@ -8,7 +8,7 @@ export default function() {
Note: these only affect routes defined *after* them! 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.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 // this.timing = 400; // delay for each request, automatically set to 0 during testing
/* /*
@ -17,6 +17,8 @@ export default function() {
/* /*
GET shorthands GET shorthands
this.get()
// Collections // Collections
this.get('/contacts'); this.get('/contacts');
this.get('/contacts', 'users'); this.get('/contacts', 'users');
@ -28,6 +30,12 @@ export default function() {
this.get('/contacts/:id', ['contact', 'addresses']); this.get('/contacts/:id', ['contact', 'addresses']);
*/ */
this.get('/authenticate', function() {
return {
};
});
/* /*
POST shorthands POST shorthands

View file

@ -94,9 +94,9 @@ export default Router.map(function() {
path: 'widgets' path: 'widgets'
}); });
this.route('not-found', { // this.route('not-found', {
path: '/*wildcard' // path: '/*wildcard'
}); // });
this.route('pods', function() {}); this.route('pods', function() {});
}); });

View file

@ -24,6 +24,9 @@ module.exports = function(environment) {
EmberENV: { EmberENV: {
FEATURES: {} FEATURES: {}
},
"ember-cli-mirage": {
enabled: false
}, },
APP: {} APP: {}
}; };
@ -42,12 +45,13 @@ module.exports = function(environment) {
ENV.APP.LOG_VIEW_LOOKUPS = false; ENV.APP.LOG_VIEW_LOOKUPS = false;
// ENV.APP.LOG_TRANSITIONS = false; // ENV.APP.LOG_TRANSITIONS = false;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = false; // ENV.APP.LOG_TRANSITIONS_INTERNAL = false;
ENV.APP.LOG_TRANSITIONS = true;
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.baseURL = '/'; ENV.baseURL = '/';
// ENV.locationType = 'none'; ENV.locationType = 'none';
// ENV.APP.rootElement = '#ember-testing'; ENV.APP.rootElement = '#ember-testing';
ENV['ember-cli-mirage'] = {
enabled: true
};
ENV.apiHost = "https://localhost:5001"; ENV.apiHost = "https://localhost:5001";
// ENV.apiHost = "https://demo1.dev:5001"; // ENV.apiHost = "https://demo1.dev:5001";

View file

@ -6,15 +6,22 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Documize Tests</title> <title>Documize Tests</title>
<meta name="description" content=""> <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/vendor.css">
<link rel="stylesheet" href="assets/documize.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> </head>
<body> <body>
{{content-for "body"}} {{content-for "test-body"}} {{content-for "body"}}
{{content-for "test-body"}}
<script src="testem.js" integrity=""></script> <script src="testem.js" integrity=""></script>
<script src="assets/vendor.js"></script> <script src="assets/vendor.js"></script>
@ -23,7 +30,8 @@
<script src="assets/tests.js"></script> <script src="assets/tests.js"></script>
<script src="assets/test-loader.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> </body>
</html> </html>