Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.

Commit 02144ee

Browse files
committed
fix XO lint issue
1 parent 12e80ef commit 02144ee

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @babel */
22
import path from 'path';
33
import {CompositeDisposable} from 'atom';
4-
import Panel from './panel.js';
4+
import Panel from './panel';
55
import TestRunnerProcess from './test-runner-process';
66

77
module.exports = {

lib/test-runner-process.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ class TestRunnerProcess extends EventEmitter {
4848
parser.on('assert', assert => {
4949
instance._updateCurrentExecution(assert);
5050
const result = {
51-
currentExecution: this.currentExecution, assert
51+
currentExecution: this.currentExecution,
52+
assert
5253
};
5354
instance.emit('assert', result);
5455
});

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
],
6363
"ignores": [
6464
"atom/**"
65-
]
65+
],
66+
"rules": {
67+
"import/no-extraneous-dependencies": 0
68+
}
6669
}
6770
}

spec/test-runner-process-spec.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ describe('TestRunnerProcess', () => {
101101

102102
it('does not count skipped tests as success', () => {
103103
const receivedAssertResults = [];
104-
const assertResult = {ok: true, skip: true};
104+
const assertResult = {
105+
ok: true,
106+
skip: true
107+
};
105108
runner.run('/somefolder/', 'filename');
106109
runner.on('assert', result => receivedAssertResults.push(result));
107110

@@ -114,7 +117,10 @@ describe('TestRunnerProcess', () => {
114117

115118
it('does not count todo tests as failed', () => {
116119
const receivedAssertResults = [];
117-
const assertResult = {ok: false, todo: true};
120+
const assertResult = {
121+
ok: false,
122+
todo: true
123+
};
118124
runner.run('/somefolder/', 'filename');
119125
runner.on('assert', result => receivedAssertResults.push(result));
120126

0 commit comments

Comments
 (0)