diff --git a/test/WebEnvironmentPlugin.test.js b/test/WebEnvironmentPlugin.test.js new file mode 100644 index 000000000..e641389bb --- /dev/null +++ b/test/WebEnvironmentPlugin.test.js @@ -0,0 +1,24 @@ +var should = require("should"); +var WebEnvironmentPlugin = require("../lib/web/WebEnvironmentPlugin"); + +describe("WebEnvironmentPlugin", function() { + var WebEnvironmentPluginInstance; + + before(function() { + WebEnvironmentPluginInstance = new WebEnvironmentPlugin("inputFileSystem", "outputFileSystem"); + }); + + describe("apply", function() { + var compileSpy; + before(function() { + compileSpy = { + outputFileSystem: "otherOutputFileSystem" + }; + WebEnvironmentPluginInstance.apply(compileSpy); + }); + + it("should set compiler.outputFileSystem information with the same as setted in WebEnvironmentPlugin", function() { + should(compileSpy.outputFileSystem).be.eql(WebEnvironmentPluginInstance.outputFileSystem); + }); + }); +});