Skip to content

Commit 8b1f5f7

Browse files
committed
add test case for DefinePlugin
1 parent 14e9664 commit 8b1f5f7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • test/configCases/plugins/define-plugin

‎test/configCases/plugins/define-plugin/index.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,8 @@ it("should define process.env.DEFINED_NESTED_KEY", function() {
7575
});
7676
it("should define process.env.DEFINED_NESTED_KEY_STRING", function() {
7777
if(process.env.DEFINED_NESTED_KEY_STRING !== "string") require("fail");
78-
})
78+
});
79+
it("should assign to process.env", function() {
80+
process.env.TEST = "test";
81+
process.env.TEST.should.be.eql("test");
82+
});

0 commit comments

Comments
 (0)