import { mockContext } from './mock' ; import { CustomResourceRequestTypes , CustomResourceRequest } from '../lib' ; import { handler } from '../index' ; describe ( 'Default' , ( ) => { const event = { RequestType : CustomResourceRequestTypes . UPDATE , ResponseURL : '/cfn-response' , PhysicalResourceId : 'mock-physical-id' , StackId : 'mock-stack-id' , ServiceToken : 'mock-service-token' , RequestId : 'mock-request-id' , LogicalResourceId : 'mock-logical-resource-id' , ResourceType : 'mock-resource-type' , ResourceProperties : { CustomAction : null } } ; it ( 'Should return success for other default custom resource' , async ( ) => { const result = await handler ( event , mockContext ) ; expect ( result ) . toEqual ( { Status : 'SUCCESS' , Data : { } } ) ; } ) ; } ) ;