@@ -817,12 +817,12 @@ aws_secret_access_key = CUSTOMSECRET
817817 } ,
818818 } ,
819819 } ,
820- } ) ,
820+ } )
821821 ) . to . be . eventually . rejected . and . have . property (
822822 'code' ,
823- 'ECR_IMAGE_URI_AND_BUILDOPTIONS_DEFINED_ERROR' ,
824- )
825- } )
823+ 'ECR_IMAGE_URI_AND_BUILDOPTIONS_DEFINED_ERROR'
824+ ) ;
825+ } ) ;
826826
827827 it ( 'should fail if `functions[].image` references image with both path and uri' , async ( ) => {
828828 await expect (
@@ -1688,7 +1688,7 @@ aws_secret_access_key = CUSTOMSECRET
16881688 ] ) ;
16891689 } ) ;
16901690
1691- t ( 'should work correctly when image is defined with `buildOptions` set' , async ( ) => {
1691+ it ( 'should work correctly when image is defined with `buildOptions` set' , async ( ) => {
16921692 const awsRequestStubMap = {
16931693 ...baseAwsRequestStubMap ,
16941694 ECR : {
@@ -1698,7 +1698,7 @@ aws_secret_access_key = CUSTOMSECRET
16981698 } ) ,
16991699 createRepository : createRepositoryStub ,
17001700 } ,
1701- }
1701+ } ;
17021702 const {
17031703 awsNaming,
17041704 cfTemplate,
@@ -1721,23 +1721,20 @@ aws_secret_access_key = CUSTOMSECRET
17211721 } ,
17221722 } ,
17231723 } ,
1724- } )
1724+ } ) ;
17251725
1726- const functionCfLogicalId = awsNaming . getLambdaLogicalId ( 'foo' )
1727- const functionCfConfig =
1728- cfTemplate . Resources [ functionCfLogicalId ] . Properties
1726+ const functionCfLogicalId = awsNaming . getLambdaLogicalId ( 'foo' ) ;
1727+ const functionCfConfig = cfTemplate . Resources [ functionCfLogicalId ] . Properties ;
17291728 const versionCfConfig = Object . values ( cfTemplate . Resources ) . find (
17301729 ( resource ) =>
17311730 resource . Type === 'AWS::Lambda::Version' &&
1732- resource . Properties . FunctionName . Ref === functionCfLogicalId ,
1733- ) . Properties
1734-
1735- expect ( functionCfConfig . Code . ImageUri ) . to . deep . equal (
1736- `${ repositoryUri } @sha256:${ imageSha } ` ,
1737- )
1738- expect ( versionCfConfig . CodeSha256 ) . to . equal ( imageSha )
1739- expect ( describeRepositoriesStub ) . to . be . calledOnce
1740- expect ( createRepositoryStub . notCalled ) . to . be . true
1731+ resource . Properties . FunctionName . Ref === functionCfLogicalId
1732+ ) . Properties ;
1733+
1734+ expect ( functionCfConfig . Code . ImageUri ) . to . deep . equal ( `${ repositoryUri } @sha256:${ imageSha } ` ) ;
1735+ expect ( versionCfConfig . CodeSha256 ) . to . equal ( imageSha ) ;
1736+ expect ( describeRepositoriesStub ) . to . be . calledOnce ;
1737+ expect ( createRepositoryStub . notCalled ) . to . be . true ;
17411738 expect ( spawnExtStub ) . to . be . calledWith ( 'docker' , [
17421739 'build' ,
17431740 '-t' ,
@@ -1747,7 +1744,7 @@ aws_secret_access_key = CUSTOMSECRET
17471744 '--ssh' ,
17481745 'default=/path/to/file' ,
17491746 './' ,
1750- ] )
1747+ ] ) ;
17511748 } ) ;
17521749
17531750 it ( 'should work correctly when image is defined with `buildArgs` set' , async ( ) => {
0 commit comments