From 7ab3e49b5d6fb6c03d023e4f22ef06087dd0f11f Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Fri, 2 Dec 2022 10:14:50 +0100 Subject: [PATCH] Fix build --- packages/cdk-assets/lib/private/handlers/files.ts | 1 - packages/cdk-assets/test/files.test.ts | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/packages/cdk-assets/lib/private/handlers/files.ts b/packages/cdk-assets/lib/private/handlers/files.ts index 8fbb6becb5131..66d32bac4a8ca 100644 --- a/packages/cdk-assets/lib/private/handlers/files.ts +++ b/packages/cdk-assets/lib/private/handlers/files.ts @@ -82,7 +82,6 @@ export class FileAssetHandler implements IAssetHandler { if (this.host.aborted) { return; } const publishFile = this.asset.source.executable ? await this.externalPackageFile(this.asset.source.executable) : await this.packageFile(this.asset.source); - } this.host.emitMessage(EventType.UPLOAD, `Upload ${s3Url}`); diff --git a/packages/cdk-assets/test/files.test.ts b/packages/cdk-assets/test/files.test.ts index 9ef52ef8a21a8..cbf8c75c7f8d5 100644 --- a/packages/cdk-assets/test/files.test.ts +++ b/packages/cdk-assets/test/files.test.ts @@ -310,18 +310,6 @@ test('correctly identify asset path if path is absolute', async () => { expect(true).toBeTruthy(); // No exception, satisfy linter }); -test('empty directory prints failures', async () => { - const progressListener = new FakeListener(); - const pub = new AssetPublishing(AssetManifest.fromPath('/emptyzip/cdk.out'), { aws, progressListener }); - - aws.mockS3.listObjectsV2 = mockedApiResult({ Contents: undefined }); - aws.mockS3.upload = mockUpload(); // Should not be hit - - await pub.publish(); - - expect(progressListener.messages).toContainEqual(expect.stringContaining('EMPTY ZIP FILE')); -}); - describe('external assets', () => { let pub: AssetPublishing; beforeEach(() => {