File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,10 @@ Lambda.prototype._params = function (program, buffer) {
122122 MemorySize : program . memorySize ,
123123 Timeout : program . timeout ,
124124 Publish : program . publish ,
125- VpcConfig : { } ,
125+ VpcConfig : {
126+ SubnetIds : [ ] ,
127+ SecurityGroupIds : [ ]
128+ } ,
126129 Environment : {
127130 Variables : { }
128131 }
Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ describe('node-lambda', function () {
7171
7272 it ( 'does not append VpcConfig when params are not set' , function ( ) {
7373 var params = lambda . _params ( program ) ;
74- assert . equal ( Object . keys ( params . VpcConfig ) . length , 0 ) ;
74+ assert . equal ( Object . keys ( params . VpcConfig . SubnetIds ) . length , 0 ) ;
75+ assert . equal ( Object . keys ( params . VpcConfig . SecurityGroupIds ) . length , 0 ) ;
7576 } ) ;
7677
7778 describe ( 'configFile' , function ( ) {
You can’t perform that action at this time.
0 commit comments