diff --git a/src/webpack-plugin/plugin.js b/src/webpack-plugin/plugin.js index 77dbabd..764a1ae 100644 --- a/src/webpack-plugin/plugin.js +++ b/src/webpack-plugin/plugin.js @@ -33,14 +33,14 @@ module.exports = class FilerWebpackPlugin { // Apply fs, path and buffer shims if required switch (resolveData.request) { - case 'fs': - if (!this.options.shimFs) return; - return this.applyFsShim(resolveData); - case 'path': - if (!this.options.shimPath) return; - return this.applyPathShim(resolveData); - default: - return; + case 'fs': + if (!this.options.shimFs) return; + return this.applyFsShim(resolveData); + case 'path': + if (!this.options.shimPath) return; + return this.applyPathShim(resolveData); + default: + return; } } ); diff --git a/tests/lib/test-utils.js b/tests/lib/test-utils.js index 1d7b5c3..d3b3593 100644 --- a/tests/lib/test-utils.js +++ b/tests/lib/test-utils.js @@ -168,7 +168,7 @@ function createMockFn(implementation = undefined) { if (typeof implementation === 'function') { return implementation(...args); } - } + }; Object.defineProperty(mockFn, 'calls', { get() { return calls; diff --git a/tests/spec/webpack-plugin/webpack-plugin.spec.js b/tests/spec/webpack-plugin/webpack-plugin.spec.js index ac0eefd..e2c130d 100644 --- a/tests/spec/webpack-plugin/webpack-plugin.spec.js +++ b/tests/spec/webpack-plugin/webpack-plugin.spec.js @@ -15,7 +15,7 @@ function createNMFResolveCompilerObject(resolveData) { tap: normalModuleFactory_resolve_tap } } - } + }; const normalModuleFactory_tap = utils.createMockFn(function (name, callback) { callback(normalModuleFactory); @@ -27,13 +27,13 @@ function createNMFResolveCompilerObject(resolveData) { tap: normalModuleFactory_tap, } } - } + }; return { compiler, normalModuleFactory_tap, normalModuleFactory_resolve_tap, - } + }; } describe.only('path shim', () => { @@ -324,8 +324,6 @@ describe.only('path shim', () => { // Mocks const { compiler, - normalModuleFactory_tap, - normalModuleFactory_resolve_tap, } = createNMFResolveCompilerObject(resolveDataIn); // Act