Skip to content

Commit

Permalink
fix(test): esling reports error that path should never be concated as…
Browse files Browse the repository at this point in the history
… string
  • Loading branch information
k2s committed Mar 20, 2017
1 parent d6f0ada commit 2b3f442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/resources/tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {Server as Karma} from 'karma';
import {CLIOptions} from 'aurelia-cli';
import build from './build';
import {watch} from './run';
import path from 'path';

function log(message) {
console.log(message); //eslint-disable-line no-console
Expand All @@ -14,7 +15,7 @@ function onChange(path) {

let karma = done => {
new Karma({
configFile: __dirname + '/../../karma.conf.js',
configFile: path.join(__dirname, '/../../karma.conf.js'),
singleRun: !CLIOptions.hasFlag('watch')
}, done).start();
};
Expand Down
3 changes: 2 additions & 1 deletion lib/resources/tasks/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {Server as Karma} from 'karma';
import {CLIOptions} from 'aurelia-cli';
import build from './build';
import {watch} from './run';
import path from 'path';

function log(message) {
console.log(message); //eslint-disable-line no-console
Expand All @@ -14,7 +15,7 @@ function onChange(path) {

let karma = done => {
new Karma({
configFile: __dirname + '/../../karma.conf.js',
configFile: path.join(__dirname, '/../../karma.conf.js'),
singleRun: !CLIOptions.hasFlag('watch')
}, done).start();
};
Expand Down

0 comments on commit 2b3f442

Please sign in to comment.