@@ -35,9 +35,9 @@ jest.mock('aws-sdk', () => {
3535} ) ;
3636
3737import { handleCreate , handleUpdate } from '../../../lambdas/ecs-deployment-group' ;
38- import { defaultContext } from '../__fixtures__/defaultContext ' ;
39- import { defaultEvent } from '../__fixtures__/defaultEvent ' ;
40- import { defaultLogger } from '../__fixtures__/defaultLogger ' ;
38+ import { defaultContext } from '../__fixtures__/default-context ' ;
39+ import { defaultEvent } from '../__fixtures__/default-event ' ;
40+ import { defaultLogger } from '../__fixtures__/default-logger ' ;
4141
4242const defaultEcsDeploymentGroupProperties = {
4343 ApplicationName : 'TestApplicationName' ,
@@ -52,11 +52,11 @@ const defaultEcsDeploymentGroupProperties = {
5252 TargetGroupNames : [ 'Foo' ] ,
5353 ProdTrafficListenerArn : 'arn:aws:elasticloadbalancing::012345678910:listener/app/MyApp/foo/prod' ,
5454 TestTrafficListenerArn : 'arn:aws:elasticloadbalancing::012345678910:listener/app/MyApp/foo/test' ,
55- TerminationWaitTimeInMinutes : 5
55+ TerminationWaitTimeInMinutes : 5 ,
5656} ;
5757
5858describe ( 'createHandler' , ( ) => {
59- it ( 'sends tags with create request' , async ( ) => {
59+ test ( 'sends tags with create request' , async ( ) => {
6060 await handleCreate (
6161 {
6262 ...defaultEvent ,
@@ -84,7 +84,7 @@ describe('createHandler', () => {
8484 ) ;
8585 } ) ;
8686
87- it ( 'returns the physical id and arn of the deployment group' , async ( ) => {
87+ test ( 'returns the physical id and arn of the deployment group' , async ( ) => {
8888 const response = await handleCreate (
8989 {
9090 ...defaultEvent ,
@@ -100,7 +100,7 @@ describe('createHandler', () => {
100100 } ,
101101 {
102102 ...defaultContext ,
103- invokedFunctionArn : 'arn:aws:lambda:eu-west-1:012345678910:function:MyCustomResourceHandler'
103+ invokedFunctionArn : 'arn:aws:lambda:eu-west-1:012345678910:function:MyCustomResourceHandler' ,
104104 } ,
105105 defaultLogger ,
106106 ) ;
@@ -109,15 +109,15 @@ describe('createHandler', () => {
109109 expect . objectContaining ( {
110110 physicalResourceId : 'TestDeploymentGroupName' ,
111111 responseData : {
112- Arn : 'arn:aws:codedeploy:eu-west-1:012345678910:deploymentgroup:TestApplicationName/TestDeploymentGroupName'
112+ Arn : 'arn:aws:codedeploy:eu-west-1:012345678910:deploymentgroup:TestApplicationName/TestDeploymentGroupName' ,
113113 } ,
114114 } ) ,
115115 ) ;
116- } )
116+ } ) ;
117117} ) ;
118118
119119describe ( 'updateHandler' , ( ) => {
120- it ( 'sends data update requests' , async ( ) => {
120+ test ( 'sends data update requests' , async ( ) => {
121121 await handleUpdate (
122122 {
123123 ...defaultEvent ,
@@ -165,7 +165,7 @@ describe('updateHandler', () => {
165165 ) ;
166166 } ) ;
167167
168- it ( 'returns the physical id and arn of the deployment group' , async ( ) => {
168+ test ( 'returns the physical id and arn of the deployment group' , async ( ) => {
169169 const response = await handleUpdate (
170170 {
171171 ...defaultEvent ,
@@ -190,9 +190,9 @@ describe('updateHandler', () => {
190190 expect . objectContaining ( {
191191 physicalResourceId : 'TestDeploymentGroupName' ,
192192 responseData : {
193- Arn : 'arn:aws:codedeploy:us-east-1:012345678910:deploymentgroup:TestApplicationName/TestDeploymentGroupName'
193+ Arn : 'arn:aws:codedeploy:us-east-1:012345678910:deploymentgroup:TestApplicationName/TestDeploymentGroupName' ,
194194 } ,
195195 } ) ,
196196 ) ;
197- } )
197+ } ) ;
198198} ) ;
0 commit comments