From 5b0c7dba0ecc6c6e3812ed0a3a6ba959c9f81404 Mon Sep 17 00:00:00 2001 From: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com> Date: Thu, 26 Jun 2025 22:01:15 +0200 Subject: [PATCH] test_runner: correct "already mocked" error punctuation placement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/58840 Reviewed-By: Pietro Marchini Reviewed-By: Ethan Arrowood Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca --- lib/internal/test_runner/mock/mock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/test_runner/mock/mock.js b/lib/internal/test_runner/mock/mock.js index 9dc358397a..86a2c5199a 100644 --- a/lib/internal/test_runner/mock/mock.js +++ b/lib/internal/test_runner/mock/mock.js @@ -671,7 +671,7 @@ class MockTracker { if (baseURL.searchParams.has(kMockSearchParam)) { throw new ERR_INVALID_STATE( - `Cannot mock '${specifier}.' The module is already mocked.`, + `Cannot mock '${specifier}'. The module is already mocked.`, ); }