TechDocs: Use expect.assertions to make sure the error messages are checked

This commit is contained in:
Himanshu Mishra
2021-02-19 11:06:27 +01:00
parent 346a0feecf
commit 5851bd5d2b
3 changed files with 4 additions and 0 deletions
@@ -120,6 +120,7 @@ describe('AwsS3Publish', () => {
});
it('should fail to publish a directory', async () => {
expect.assertions(3);
const wrongPathToGeneratedDirectory = path.join(
rootDir,
'wrong',
@@ -111,6 +111,7 @@ describe('publishing with valid credentials', () => {
});
it('should fail to publish a directory', async () => {
expect.assertions(1);
const wrongPathToGeneratedDirectory = path.join(
rootDir,
'wrong',
@@ -117,6 +117,8 @@ describe('GoogleGCSPublish', () => {
});
it('should fail to publish a directory', async () => {
expect.assertions(3);
const wrongPathToGeneratedDirectory = path.join(
rootDir,
'wrong',