From f28ad77d119c9bdabf8ec9d191cc04d440e45b58 Mon Sep 17 00:00:00 2001 From: Manuel Stein Date: Sun, 24 Jul 2022 19:12:39 +0300 Subject: [PATCH] awsS3 getObject expect specific error message Signed-off-by: Manuel Stein --- plugins/techdocs-node/src/stages/publish/awsS3.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/techdocs-node/src/stages/publish/awsS3.test.ts b/plugins/techdocs-node/src/stages/publish/awsS3.test.ts index 24ea9af563..10f92dc074 100644 --- a/plugins/techdocs-node/src/stages/publish/awsS3.test.ts +++ b/plugins/techdocs-node/src/stages/publish/awsS3.test.ts @@ -478,7 +478,7 @@ describe('AwsS3Publish', () => { await expect(fails).rejects.toMatchObject({ message: expect.stringMatching( - /TechDocs metadata fetch failed; caused by Error: .*/i, + /TechDocs metadata fetch failed; caused by Error: Unable to read stream; caused by Error: The file invalid\/triplet\/path\/techdocs_metadata.json does not exist/i, ), }); });