Skip to content

Commit 72470f0

Browse files
VikalpPDavertMik
authored andcommitted
refactor: fix eslint errors (codeceptjs#1735)
1 parent 6732c7f commit 72470f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/scenario.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ module.exports.test = (test) => {
9595
*/
9696
module.exports.injected = function (fn, suite, hookName) {
9797
return function (done) {
98-
9998
const errHandler = (err) => {
10099
recorder.session.start('teardown');
101100
recorder.cleanAsyncErr();
@@ -111,15 +110,15 @@ module.exports.injected = function (fn, suite, hookName) {
111110

112111
if (!fn) throw new Error('fn is not defined');
113112

114-
event.emit(event.hook.started, suite);
113+
event.emit(event.hook.started, suite);
115114
if (!recorder.isRunning()) {
116115
recorder.start();
117116
recorder.errHandler((err) => {
118117
errHandler(err);
119118
});
120119
}
121120

122-
this.test.body = fn.toString();
121+
this.test.body = fn.toString();
123122

124123
if (isAsyncFunction(fn)) {
125124
fn.apply(this, getInjectedArguments(fn)).then(() => {

0 commit comments

Comments
 (0)