@@ -190,18 +190,11 @@ describe('Scf', () => {
190190 expect ( outputs . AsyncRunEnable ) . toBe ( 'FALSE' ) ;
191191 expect ( outputs . Status ) . toBe ( 'Active' ) ;
192192 expect ( outputs . EipConfig ) . toEqual ( { EipFixed : 'TRUE' , Eips : expect . any ( Array ) } ) ;
193- expect ( outputs . Layers ) . toEqual ( [
194- {
195- LayerName : layerInputs . name ,
196- LayerVersion : expect . any ( Number ) ,
197- CompatibleRuntimes : layerInputs . runtimes ,
198- Description : layerInputs . description ,
199- LicenseInfo : '' ,
200- AddTime : expect . any ( String ) ,
201- Status : 'Active' ,
202- Src : 'Default' ,
203- } ,
204- ] ) ;
193+
194+ expect ( outputs . Layers [ 0 ] . LayerName ) . toBe ( layerInputs . name ) ;
195+ expect ( outputs . Layers [ 0 ] . CompatibleRuntimes ) . toEqual ( layerInputs . runtimes ) ;
196+ expect ( outputs . Layers [ 0 ] . Description ) . toBe ( layerInputs . description ) ;
197+
205198 expect ( outputs . PublicNetConfig ) . toEqual ( {
206199 PublicNetStatus : 'ENABLE' ,
207200 EipConfig : { EipStatus : 'ENABLE' , EipAddress : expect . any ( Array ) } ,
@@ -348,18 +341,11 @@ describe('Scf', () => {
348341 expect ( outputs . AsyncRunEnable ) . toBe ( 'FALSE' ) ;
349342 expect ( outputs . Status ) . toBe ( 'Active' ) ;
350343 expect ( outputs . EipConfig ) . toEqual ( { EipFixed : 'TRUE' , Eips : expect . any ( Array ) } ) ;
351- expect ( outputs . Layers ) . toEqual ( [
352- {
353- LayerName : layerInputs . name ,
354- LayerVersion : expect . any ( Number ) ,
355- CompatibleRuntimes : layerInputs . runtimes ,
356- Description : layerInputs . description ,
357- LicenseInfo : '' ,
358- AddTime : expect . any ( String ) ,
359- Status : 'Active' ,
360- Src : 'Default' ,
361- } ,
362- ] ) ;
344+
345+ expect ( outputs . Layers [ 0 ] . LayerName ) . toBe ( layerInputs . name ) ;
346+ expect ( outputs . Layers [ 0 ] . CompatibleRuntimes ) . toEqual ( layerInputs . runtimes ) ;
347+ expect ( outputs . Layers [ 0 ] . Description ) . toBe ( layerInputs . description ) ;
348+
363349 expect ( outputs . PublicNetConfig ) . toEqual ( {
364350 PublicNetStatus : 'ENABLE' ,
365351 EipConfig : { EipStatus : 'ENABLE' , EipAddress : expect . any ( Array ) } ,
0 commit comments