From 06ba29bc07ac741e761f35ef544574f544577ccf Mon Sep 17 00:00:00 2001 From: Vladimir Grenaderov Date: Thu, 23 Mar 2023 21:51:02 +0000 Subject: [PATCH] use existing test file instead of creating additional one --- tests/local/strictest.js | 4 ---- tests/tests-node/esmock.node.test.js | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 tests/local/strictest.js diff --git a/tests/local/strictest.js b/tests/local/strictest.js deleted file mode 100644 index 30d13100..00000000 --- a/tests/local/strictest.js +++ /dev/null @@ -1,4 +0,0 @@ -import { log } from "console" -import { basename } from "path" - -log(basename(import.meta.url)) diff --git a/tests/tests-node/esmock.node.test.js b/tests/tests-node/esmock.node.test.js index 8b7904ff..728520c7 100644 --- a/tests/tests-node/esmock.node.test.js +++ b/tests/tests-node/esmock.node.test.js @@ -436,13 +436,13 @@ test('should throw error when strict mock definition not found', async () => { test('should error when "strictest" called with defs: {}', async () => { await assert.rejects(async () => esmock.strictest( - '../local/strictest.js', {} + '../local/importsCoreLocalAndPackage.js', {} )) }) test('should error when "strictest" called with defs: undefined', async () => { await assert.rejects(async () => esmock.strictest( - '../local/strictest.js' + '../local/importsCoreLocalAndPackage.js' )) })