mirror of https://github.com/webpack/webpack.git
Merge pull request #3904 from willmendesneto/adding-web-environment-plugin-test
test(WebEnvironmentPlugin): adding missed test
This commit is contained in:
commit
db45446b85
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue