Skip to content

Commit

Permalink
chore(tests): better fail messages
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed May 1, 2023
1 parent 732b207 commit a7e756e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down Expand Up @@ -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`);
Expand Down Expand Up @@ -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`);
Expand Down Expand Up @@ -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`);
Expand Down

0 comments on commit a7e756e

Please sign in to comment.