File tree Expand file tree Collapse file tree
test/configCases/plugins/env-plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ it ( "should import a single process.env var" , function ( ) {
2+ process . env . AAA . should . be . eql ( "aaa" ) ;
3+ } ) ;
4+
5+ it ( "should import multiple process.env vars" , function ( ) {
6+ process . env . BBB . should . be . eql ( "bbb" ) ;
7+ process . env . CCC . should . be . eql ( "123" ) ;
8+ } ) ;
9+
10+ it ( "should warn when a process.env variable is undefined" , function ( ) {
11+ ( process . env . DDD === undefined ) . should . be . true ;
12+ } ) ;
Original file line number Diff line number Diff line change 1+ module . exports = [
2+ [ / D D D / , / e n v i r o n m e n t v a r i a b l e i s u n d e f i n e d / ]
3+ ] ;
Original file line number Diff line number Diff line change 1+ var EnvPlugin = require ( "../../../../lib/EnvPlugin" ) ;
2+ process . env . AAA = "aaa" ;
3+ process . env . BBB = "bbb" ;
4+ process . env . CCC = "123" ;
5+ module . exports = [ {
6+ plugins : [
7+ new EnvPlugin ( "AAA" )
8+ ]
9+ } , {
10+ plugins : [
11+ new EnvPlugin ( "BBB" , "CCC" )
12+ ]
13+ } , {
14+ plugins : [
15+ new EnvPlugin ( "DDD" )
16+ ]
17+ } ] ;
You can’t perform that action at this time.
0 commit comments