From d97256a32c171e06a9b413e68db5ef12cdec5dbf Mon Sep 17 00:00:00 2001 From: Wassim Chegham Date: Wed, 12 Oct 2022 08:46:06 +0200 Subject: [PATCH] test_runner: update runner with new AST signature --- lib/internal/test_runner/runner.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/internal/test_runner/runner.js b/lib/internal/test_runner/runner.js index 1e1627f78bb0d4..abb0a1eee8a03b 100644 --- a/lib/internal/test_runner/runner.js +++ b/lib/internal/test_runner/runner.js @@ -142,7 +142,7 @@ class FileTest extends Test { break; case TokenKind.TAP_PLAN: - this.reporter.plan(indent, node.plan.end - node.plan.start + 1); + this.reporter.plan(indent, node.end - node.start + 1); break; case TokenKind.TAP_SUBTEST_POINT: @@ -152,31 +152,31 @@ class FileTest extends Test { case TokenKind.TAP_TEST_OK: case TokenKind.TAP_TEST_NOTOK: // eslint-disable-next-line no-case-declarations - const { todo, skip, pass } = node.test.status; + const { todo, skip, pass } = node.status; // eslint-disable-next-line no-case-declarations let directive = {}; if (todo) { - directive = this.reporter.getTodo(node.test.reason); + directive = this.reporter.getTodo(node.reason); } if (skip) { - directive = this.reporter.getSkip(node.test.reason); + directive = this.reporter.getSkip(node.reason); } if (pass) { this.reporter.ok( indent, - node.test.id, - node.test.description, + node.id, + node.description, null, directive ); } else { this.reporter.fail( indent, - node.test.id, - node.test.description, + node.id, + node.description, null, directive );