Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
chore(holocron-module-register-webpack-plugin): fix test data
Browse files Browse the repository at this point in the history
  • Loading branch information
code-forger committed Oct 24, 2023
1 parent 147873f commit ea09da2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('HolocronModuleRegisterPlugin', () => {
expect.assertions(1);
const outputFileName = 'webpack-test-output-async.js';
const moduleName = 'some-module';
const holocronModuleName = `holocronModule-${moduleName}`;
const holocronModuleName = 'MockModuleContainerName';
const webpackOptionsWithPlugins = {
...webpackOptions,
plugins: [new HolocronModuleRegisterPlugin(moduleName, holocronModuleName)],
Expand All @@ -134,6 +134,6 @@ describe('HolocronModuleRegisterPlugin', () => {

await waitForWebpack(options);
const fileContents = fs.readFileSync(path.join(buildPath, outputFileName)).toString();
expect(fileContents).toContain('Holocron.registerModule("some-module", holocronModule-some-module);');
expect(fileContents).toContain('Holocron.registerModule("some-module", MockModuleContainerName);');
});
});

0 comments on commit ea09da2

Please sign in to comment.