Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update ESLint to 8 #4926

Merged
merged 2 commits into from Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions lib/interfaces/bdd.js
Expand Up @@ -40,9 +40,9 @@ module.exports = function bddInterface(suite) {

context.describe = context.context = function (title, fn) {
return common.suite.create({
title: title,
file: file,
fn: fn
title,
file,
fn
});
};

Expand All @@ -55,9 +55,9 @@ module.exports = function bddInterface(suite) {
context.describe.skip =
function (title, fn) {
return common.suite.skip({
title: title,
file: file,
fn: fn
title,
file,
fn
});
};

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

context.describe.only = function (title, fn) {
return common.suite.only({
title: title,
file: file,
fn: fn
title,
file,
fn
});
};

Expand Down
8 changes: 4 additions & 4 deletions lib/interfaces/qunit.js
Expand Up @@ -49,8 +49,8 @@ module.exports = function qUnitInterface(suite) {
suites.shift();
}
return common.suite.create({
title: title,
file: file,
title,
file,
fn: false
});
};
Expand All @@ -64,8 +64,8 @@ module.exports = function qUnitInterface(suite) {
suites.shift();
}
return common.suite.only({
title: title,
file: file,
title,
file,
fn: false
});
};
Expand Down
18 changes: 9 additions & 9 deletions lib/interfaces/tdd.js
Expand Up @@ -47,9 +47,9 @@ module.exports = function (suite) {
*/
context.suite = function (title, fn) {
return common.suite.create({
title: title,
file: file,
fn: fn
title,
file,
fn
});
};

Expand All @@ -58,9 +58,9 @@ module.exports = function (suite) {
*/
context.suite.skip = function (title, fn) {
return common.suite.skip({
title: title,
file: file,
fn: fn
title,
file,
fn
});
};

Expand All @@ -69,9 +69,9 @@ module.exports = function (suite) {
*/
context.suite.only = function (title, fn) {
return common.suite.only({
title: title,
file: file,
fn: fn
title,
file,
fn
});
};

Expand Down
2 changes: 1 addition & 1 deletion lib/reporters/json-stream.js
Expand Up @@ -36,7 +36,7 @@ function JSONStream(runner, options) {
var total = runner.total;

runner.once(EVENT_RUN_BEGIN, function () {
writeEvent(['start', {total: total}]);
writeEvent(['start', {total}]);
});

runner.on(EVENT_TEST_PASS, function (test) {
Expand Down
2 changes: 1 addition & 1 deletion lib/reporters/markdown.js
Expand Up @@ -50,7 +50,7 @@ function Markdown(runner, options) {
var ret = obj;
var key = SUITE_PREFIX + suite.title;

obj = obj[key] = obj[key] || {suite: suite};
obj = obj[key] = obj[key] || {suite};
suite.suites.forEach(function (suite) {
mapTOC(suite, obj);
});
Expand Down