This repository was archived by the owner on Dec 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
compile/functions/runtimes Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class BaseRuntime {
9696
9797 getArtifactPath ( functionObject ) {
9898 return this . serverless . service . package . individually ?
99- functionObject . artifact : this . serverless . service . package . artifact ;
99+ functionObject . package . artifact : this . serverless . service . package . artifact ;
100100 }
101101}
102102
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ describe('Binary', () => {
9898 } )
9999
100100 it ( 'should handle service artifact for individual function handler' , ( ) => {
101- const functionObj = { handler : 'handler' , artifact : '/path/to/zip_file.zip' }
101+ const functionObj = { handler : 'handler' , package : { artifact : '/path/to/zip_file.zip' } }
102102 node . serverless . service . package = { individually : true } ;
103103 node . isValidFile = ( ) => true
104104
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ describe('Node', () => {
145145 } ) ;
146146
147147 it ( 'should handle service artifact for individual function handler' , ( ) => {
148- const functionObj = { handler : 'handler.main' , artifact : '/path/to/zip_file.zip' }
148+ const functionObj = { handler : 'handler.main' , package : { artifact : '/path/to/zip_file.zip' } }
149149 node . serverless . service . package = { individually : true } ;
150150 node . isValidFile = ( ) => true
151151
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ describe('Php', () => {
109109 } )
110110
111111 it ( 'should handle service artifact for individual function handler' , ( ) => {
112- const functionObj = { handler : 'handler.main' , artifact : '/path/to/zip_file.zip' }
112+ const functionObj = { handler : 'handler.main' , package : { artifact : '/path/to/zip_file.zip' } }
113113 php . serverless . service . package = { individually : true } ;
114114 php . isValidFile = ( ) => true
115115
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ describe('Python', () => {
111111 } )
112112
113113 it ( 'should handle service artifact for individual function handler' , ( ) => {
114- const functionObj = { handler : 'handler.main' , artifact : '/path/to/zip_file.zip' }
114+ const functionObj = { handler : 'handler.main' , package : { artifact : '/path/to/zip_file.zip' } }
115115 node . serverless . service . package = { individually : true } ;
116116 node . isValidFile = ( ) => true
117117
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ describe('Swift', () => {
122122 } )
123123
124124 it ( 'should handle service artifact for individual function handler' , ( ) => {
125- const functionObj = { handler : 'handler.main' , artifact : '/path/to/zip_file.zip' }
125+ const functionObj = { handler : 'handler.main' , package : { artifact : '/path/to/zip_file.zip' } }
126126 node . serverless . service . package = { individually : true } ;
127127 node . isValidFile = ( ) => true
128128
You can’t perform that action at this time.
0 commit comments