From 5a1516ec1ac8ad94a80d2bac2ef2fe3ce7d36de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Thu, 7 Jul 2022 17:08:05 -0300 Subject: [PATCH] fix(core): bind class instances to methods --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index dfc5f7a..f1f556d 100644 --- a/src/index.js +++ b/src/index.js @@ -77,7 +77,9 @@ export class Test { if (this.afterEach) suite.each.teardown(this.afterEach.bind(this)) this.testNames.forEach(testName => { - const japaTest = test(testName, this[testName].bind(this)).timeout(this.timeout) + const japaTest = test(testName, this[testName].bind(this)).timeout( + this.timeout, + ) if (this.runOnly[0] === '*') { return