Skip to content

Commit c74eaa0

Browse files
committed
Include test-loader from npm instead of bower
1 parent adff335 commit c74eaa0

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"devel": true,
1616
"eqeqeq": true,
1717
"eqnull": true,
18-
"esnext": true,
18+
"esversion": 6,
1919
"evil": true,
2020
"forin": false,
2121
"immed": false,

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ cache:
1010
- node_modules
1111

1212
before_install:
13-
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
14-
- "npm config set spin false"
15-
- "npm install -g npm@^2"
13+
- npm config set spin false
14+
- npm install -g bower
15+
- bower --version
16+
- npm install phantomjs-prebuilt
17+
- phantomjs --version
1618

1719
install:
18-
- npm install -g bower
1920
- npm install
2021
- bower install
2122

app/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111
{{content-for 'head'}}
1212

13-
<link rel="stylesheet" href="assets/vendor.css">
14-
<link rel="stylesheet" href="assets/mcac.css">
13+
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
14+
<link rel="stylesheet" href="{{rootURL}}assets/mcac.css">
1515

1616
{{content-for 'head-footer'}}
1717
</head>
1818
<body>
1919
{{content-for 'body'}}
2020

21-
<script src="assets/vendor.js"></script>
22-
<script src="assets/mcac.js"></script>
21+
<script src="{{rootURL}}assets/vendor.js"></script>
22+
<script src="{{rootURL}}assets/mcac.js"></script>
2323
{{content-for 'body-footer'}}
2424
</body>
2525
</html>

app/router.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import Ember from "ember";
22
import config from "./config/environment";
33

4-
var Router = Ember.Router.extend({
4+
const Router = Ember.Router.extend({
5+
rootURL: config.rootURL,
56
location: config.locationType,
67
metrics: Ember.inject.service(),
78

bower.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"bootstrap-markdown": "~2.8.0",
77
"ember": "~2.7.0",
88
"ember-cli-shims": "0.1.0",
9-
"ember-cli-test-loader": "0.2.2",
109
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
1110
"ember-qunit-notifications": "0.1.0",
1211
"ember-resolver": "~0.1.15",

config/environment.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function(environment) {
44
var ENV = {
55
modulePrefix: 'mcac',
66
environment: environment,
7-
baseURL: '/',
7+
rootURL: '/',
88
locationType: 'auto',
99
EmberENV: {
1010
FEATURES: {
@@ -53,7 +53,6 @@ module.exports = function(environment) {
5353

5454
if (environment === 'test') {
5555
// Testem prefers this...
56-
ENV.baseURL = '/';
5756
ENV.locationType = 'none';
5857

5958
// keep test console output quieter

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@
4444
"ember-cli-moment-shim": "1.0.0",
4545
"ember-cli-page-object": "^1.1.0",
4646
"ember-cli-pretender": "0.3.1",
47-
"ember-cli-qunit": "^1.2.1",
47+
"ember-cli-qunit": "^2.0.0",
4848
"ember-cli-release": "^0.2.9",
4949
"ember-cli-sass": "5.2.1",
5050
"ember-cli-sri": "^2.1.0",
51+
"ember-cli-test-loader": "^1.1.0",
5152
"ember-cli-uglify": "^1.2.0",
5253
"ember-concurrency": "0.5.17",
5354
"ember-data": "^2.7.0",

tests/.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
"strict": false,
5050
"white": false,
5151
"eqnull": true,
52-
"esnext": true,
52+
"esversion": 6,
5353
"unused": true
5454
}

tests/index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
{{content-for "head"}}
1111
{{content-for "test-head"}}
1212

13-
<link rel="stylesheet" href="assets/vendor.css">
14-
<link rel="stylesheet" href="assets/mcac.css">
15-
<link rel="stylesheet" href="assets/test-support.css">
13+
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
14+
<link rel="stylesheet" href="{{rootURL}}assets/mcac.css">
15+
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
1616

1717
{{content-for "head-footer"}}
1818
{{content-for "test-head-footer"}}
@@ -21,12 +21,11 @@
2121
{{content-for "body"}}
2222
{{content-for "test-body"}}
2323

24-
<script src="testem.js" integrity=""></script>
25-
<script src="assets/vendor.js"></script>
26-
<script src="assets/test-support.js"></script>
27-
<script src="assets/mcac.js"></script>
28-
<script src="assets/tests.js"></script>
29-
<script src="assets/test-loader.js"></script>
24+
<script src="{{rootURL}}testem.js" integrity=""></script>
25+
<script src="{{rootURL}}assets/vendor.js"></script>
26+
<script src="{{rootURL}}assets/test-support.js"></script>
27+
<script src="{{rootURL}}assets/mcac.js"></script>
28+
<script src="{{rootURL}}assets/tests.js"></script>
3029

3130
{{content-for "body-footer"}}
3231
{{content-for "test-body-footer"}}

0 commit comments

Comments
 (0)