From d09ff738fea06551eeccd9871ab6e3c3c0dfac66 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Tue, 26 Dec 2023 20:26:59 +0300 Subject: [PATCH] test: getLocalIdent and node type (#1560) --- test/modules-option.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/modules-option.test.js b/test/modules-option.test.js index ceefd042..2b376810 100644 --- a/test/modules-option.test.js +++ b/test/modules-option.test.js @@ -329,7 +329,7 @@ describe('"modules" option', () => { }); it('should work and respect the "getLocalIdent" option', async () => { - expect.assertions(389); + expect.assertions(444); const compiler = getCompiler("./modules/localIdentName/localIdentName.js", { modules: { @@ -345,6 +345,7 @@ describe('"modules" option', () => { expect(options.regExp).toBe("regExp"); expect(options.context).toBe("context"); expect(options.hashSalt).toBe("hash"); + expect(options.node).toBeDefined(); return "foo"; },