Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
comcalvi committed Jul 25, 2024
1 parent 1b92d20 commit 5c81f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions lib/__tests__/watcher-handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ describe('watcher-handler', () => {
test('throws an error if PutMetricData fails', async () => {
expect.assertions(1);
cloudwatch.putMetricData = jest.fn(_request => {
return {
promise: () => new Promise((_, reject) => reject(new Error('fail'))),
};
return new Promise((_, reject) => reject(new Error('fail')));
}) as any;
try {
await handler(actionExecutionEvent());
Expand Down
1 change: 1 addition & 0 deletions lib/pipeline-watcher/handler/watcher-handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// eslint-disable-next-line import/no-extraneous-dependencies


// eslint-disable-next-line import/no-extraneous-dependencies
import { CloudWatch, Dimension, PutMetricDataCommandInput } from '@aws-sdk/client-cloudwatch';

// Partial type for the 'detail' section of an event from Amazon EventBridge for 'CodePipeline Execution State Change'
Expand Down

0 comments on commit 5c81f1f

Please sign in to comment.