From a7e756e7533ac311ac8b2f5643a135b8e3064fc7 Mon Sep 17 00:00:00 2001 From: GP Date: Mon, 1 May 2023 21:47:28 +0530 Subject: [PATCH] chore(tests): better fail messages --- test/main.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/main.test.ts b/test/main.test.ts index a249c175..b663eb58 100644 --- a/test/main.test.ts +++ b/test/main.test.ts @@ -578,7 +578,7 @@ test('🧪 run() should throw an error if the checksum verification fails.', asy `::error::🚨 CC Reporter checksum verfication failed!`, ``, ].join(EOL), - 'should correctly throw the error.' + 'should correctly throw the error if the checksum verification fails.' ); unlinkSync(filePath); unlinkSync(`${filePath}.sha256`); @@ -655,7 +655,7 @@ test('🧪 run() should throw an error if the GPG signature verification fails.' `::error::🚨 CC Reporter GPG signature verfication failed!`, ``, ].join(EOL), - 'should correctly throw the error.' + 'should correctly throw the error if the GPG signature verification fails.' ); unlinkSync(filePath); unlinkSync(`${filePath}.sha256`); @@ -738,7 +738,7 @@ test('🧪 run() should throw an error if the before-build step throws an error. `::error::🚨 CC Reporter before-build checkin failed!`, ``, ].join(EOL), - 'should correctly throw the error.' + 'should correctly throw the error if the before-build step throws an error.' ); unlinkSync(filePath); unlinkSync(`${filePath}.sha256`); @@ -828,7 +828,7 @@ test('🧪 run() should throw an error if the after-build step throws an error.' `::error::🚨 CC Reporter after-build checkin failed!`, ``, ].join(EOL), - 'should correctly throw the error.' + 'should correctly throw the error if the after-build step throws an error.' ); unlinkSync(filePath); unlinkSync(`${filePath}.sha256`);