Skip to content

Commit

Permalink
test: getLocalIdent and node type (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 26, 2023
1 parent f2cfe30 commit d09ff73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/modules-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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";
},
Expand Down

0 comments on commit d09ff73

Please sign in to comment.