Skip to content

Commit f0a7225

Browse files
committed
lint:fix
1 parent 6af9e32 commit f0a7225

9 files changed

Lines changed: 8 additions & 10 deletions

File tree

addon-test-support/-private/async-iterator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default class AsyncIterator {
115115
);
116116
reject(err);
117117
} else {
118-
// eslint-disable-next-line no-console
118+
119119
console.error(
120120
`EmberExam: Promise timed out after ${this._timeout} s while waiting for response for ${this._request}. Closing browser to exit gracefully.`,
121121
);

addon-test-support/load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let loaded = false;
1111
*/
1212
export default function loadEmberExam() {
1313
if (loaded) {
14-
// eslint-disable-next-line no-console
14+
1515
console.warn('Attempted to load Ember Exam more than once.');
1616
return;
1717
}

lib/commands/exam.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {
99
getMultipleTestPages,
1010
} = require('../utils/test-page-helper');
1111
const TestemEvents = require('../utils/testem-events');
12-
const TestCommand = require('ember-cli/lib/commands/test'); // eslint-disable-line n/no-unpublished-require
12+
const TestCommand = require('ember-cli/lib/commands/test');
1313
const TestServerTask = require('./task/test-server');
1414
const TestTask = require('./task/test');
1515

lib/commands/exam/iterate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module.exports = {
7272
input = chalk.blue(input);
7373
}
7474

75-
console.info(input); // eslint-disable-line no-console
75+
console.info(input);
7676
},
7777

7878
/**

lib/commands/task/test-server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line n/no-unpublished-require
21
const TestServerTask = require('ember-cli/lib/tasks/test-server');
32

43
module.exports = TestServerTask.extend({

lib/commands/task/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line n/no-unpublished-require
21
const TestTask = require('ember-cli/lib/tasks/test');
32

43
module.exports = TestTask.extend({

lib/utils/test-page-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function getTestUrlFromTestemConfig(configFile) {
156156
// If there is no test_page to use as the testPage, we warn that we're using
157157
// a default value
158158
if (!testPage) {
159-
// eslint-disable-next-line no-console
159+
160160
console.warn(
161161
'No test_page value found in the config. Defaulting to "tests/index.html?hidepassed"',
162162
);

lib/utils/tests-options-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ module.exports = class TestsOptionsValidator {
171171
let split = options.split;
172172

173173
if (typeof split !== 'undefined' && split < 2) {
174-
// eslint-disable-next-line no-console
174+
175175
console.warn(
176176
'You should specify a number of files greater than 1 to split your tests across. Defaulting to 1 split which is the same as not using `split`.',
177177
);

node-tests/unit/utils/tests-options-validator-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('TestOptionsValidator', function () {
4343
}
4444

4545
function shouldWarn(cmd, options, value, emberCliVer = '3.7.0') {
46-
/* eslint-disable no-console */
46+
4747
let originalWarn = console.warn;
4848
let warnCalled = 0;
4949
let warnMessage = '';
@@ -58,7 +58,7 @@ describe('TestOptionsValidator', function () {
5858
assert.strictEqual(warnMessage, value);
5959

6060
console.warn = originalWarn;
61-
/* eslint-enable no-console */
61+
6262
}
6363

6464
describe('shouldSplit', function () {

0 commit comments

Comments
 (0)