From b49d70e8c754b20f170d7fe240f1f2773c3c16b6 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:17:06 +0000 Subject: [PATCH] test: change toThrow to toThrowError --- .../src/getChecksumAlgorithmForRequest.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.spec.ts b/packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.spec.ts index 7ac3ce5438d7..ce2942dec6bc 100644 --- a/packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.spec.ts +++ b/packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.spec.ts @@ -65,7 +65,7 @@ describe(getChecksumAlgorithmForRequest.name, () => { }; expect(() => { getChecksumAlgorithmForRequest(mockInput, mockOptions); - }).toThrow( + }).toThrowError( `The checksum algorithm "${unsupportedAlgo}" is not supported by the client.` + ` Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.` );