Merge pull request #3904 from willmendesneto/adding-web-environment-plugin-test

test(WebEnvironmentPlugin): adding missed test
This commit is contained in:
Tobias Koppers 2017-01-18 16:08:39 +01:00 committed by GitHub
commit db45446b85
1 changed files with 24 additions and 0 deletions

View File

@ -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);
});
});
});