From 3f95f72914c47fbcb107a7e1b84ea763a08654d9 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 26 Dec 2023 19:57:35 +0300 Subject: [PATCH] test: getLocalIdent and node type --- 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"; },