Skip to content

Commit 51d4746

Browse files
authored
chore(devDeps): update 'ESLint' to v8 (#4926)
Signed-off-by: Outsider <[email protected]>
1 parent 4e06a6f commit 51d4746

14 files changed

+638
-552
lines changed

lib/interfaces/bdd.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ module.exports = function bddInterface(suite) {
4040

4141
context.describe = context.context = function (title, fn) {
4242
return common.suite.create({
43-
title: title,
44-
file: file,
45-
fn: fn
43+
title,
44+
file,
45+
fn
4646
});
4747
};
4848

@@ -55,9 +55,9 @@ module.exports = function bddInterface(suite) {
5555
context.describe.skip =
5656
function (title, fn) {
5757
return common.suite.skip({
58-
title: title,
59-
file: file,
60-
fn: fn
58+
title,
59+
file,
60+
fn
6161
});
6262
};
6363

@@ -67,9 +67,9 @@ module.exports = function bddInterface(suite) {
6767

6868
context.describe.only = function (title, fn) {
6969
return common.suite.only({
70-
title: title,
71-
file: file,
72-
fn: fn
70+
title,
71+
file,
72+
fn
7373
});
7474
};
7575

lib/interfaces/qunit.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ module.exports = function qUnitInterface(suite) {
4949
suites.shift();
5050
}
5151
return common.suite.create({
52-
title: title,
53-
file: file,
52+
title,
53+
file,
5454
fn: false
5555
});
5656
};
@@ -64,8 +64,8 @@ module.exports = function qUnitInterface(suite) {
6464
suites.shift();
6565
}
6666
return common.suite.only({
67-
title: title,
68-
file: file,
67+
title,
68+
file,
6969
fn: false
7070
});
7171
};

lib/interfaces/tdd.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ module.exports = function (suite) {
4747
*/
4848
context.suite = function (title, fn) {
4949
return common.suite.create({
50-
title: title,
51-
file: file,
52-
fn: fn
50+
title,
51+
file,
52+
fn
5353
});
5454
};
5555

@@ -58,9 +58,9 @@ module.exports = function (suite) {
5858
*/
5959
context.suite.skip = function (title, fn) {
6060
return common.suite.skip({
61-
title: title,
62-
file: file,
63-
fn: fn
61+
title,
62+
file,
63+
fn
6464
});
6565
};
6666

@@ -69,9 +69,9 @@ module.exports = function (suite) {
6969
*/
7070
context.suite.only = function (title, fn) {
7171
return common.suite.only({
72-
title: title,
73-
file: file,
74-
fn: fn
72+
title,
73+
file,
74+
fn
7575
});
7676
};
7777

lib/reporters/json-stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function JSONStream(runner, options) {
3636
var total = runner.total;
3737

3838
runner.once(EVENT_RUN_BEGIN, function () {
39-
writeEvent(['start', {total: total}]);
39+
writeEvent(['start', {total}]);
4040
});
4141

4242
runner.on(EVENT_TEST_PASS, function (test) {

lib/reporters/markdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function Markdown(runner, options) {
5050
var ret = obj;
5151
var key = SUITE_PREFIX + suite.title;
5252

53-
obj = obj[key] = obj[key] || {suite: suite};
53+
obj = obj[key] = obj[key] || {suite};
5454
suite.suites.forEach(function (suite) {
5555
mapTOC(suite, obj);
5656
});

0 commit comments

Comments
 (0)