Skip to content

Commit

Permalink
Merge pull request #58 from Turbo87/tests
Browse files Browse the repository at this point in the history
Run test suite on TravisCI
  • Loading branch information
Turbo87 authored Oct 13, 2018
2 parents 60b2ba2 + 159ce91 commit db3f067
Show file tree
Hide file tree
Showing 5 changed files with 579 additions and 358 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
node_js:
- 4
- 6
- 8
- 10

script:
- yarn test
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ module.exports = {
}());`;
},

serverMiddleware: function({ options, app }) {
serverMiddleware: function(config) {
let options = config.options;
let app = config.app;

let self = this;
// maintaining `baseURL` for backwards compatibility. See: http://emberjs.com/blog/2016/04/28/baseURL.html
let baseURL = options.liveReloadBaseUrl || options.rootURL || options.baseURL;
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
"author": "Robert Jackson",
"main": "index.js",
"scripts": {
"changelog": "lerna-changelog"
"changelog": "lerna-changelog",
"test": "qunit tests"
},
"dependencies": {
"clean-base-url": "^1.0.0",
"ember-cli-version-checker": "^2.1.2"
},
"devDependencies": {
"express": "^4.16.3",
"lerna-changelog": "0.8.0",
"qunit": "^2.6.1"
"lerna-changelog": "^0.7.0",
"qunit": "~2.6.1"
},
"changelog": {
"repo": "ember-cli/ember-cli-inject-live-reload",
Expand Down
2 changes: 2 additions & 0 deletions tests/inject-live-reload-test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const describe = QUnit.module;
const it = QUnit.test;
const express = require('express');
Expand Down
Loading

0 comments on commit db3f067

Please sign in to comment.