Update test techdocs_metadata.json file is not present

Signed-off-by: vitorgrenzel <vitorgrenzel@gmail.com>
This commit is contained in:
vitorgrenzel
2021-02-22 14:56:02 -03:00
parent abfa160623
commit a21442b1cd
@@ -223,18 +223,21 @@ describe('publishing with valid credentials', () => {
const entity = createMockEntity();
const entityRootDir = getEntityRootDir(entity);
await publisher
.fetchTechDocsMetadata(entityNameMock)
.catch(error =>
expect(error).toEqual(
new Error(
`TechDocs metadata fetch failed, The file ${path.join(
entityRootDir,
'techdocs_metadata.json',
)} does not exist !`,
),
),
);
let error;
try {
await publisher.fetchTechDocsMetadata(entityNameMock);
} catch (e) {
error = e;
}
expect(error).toEqual(
new Error(
`TechDocs metadata fetch failed, The file ${path.join(
entityRootDir,
'techdocs_metadata.json',
)} does not exist !`,
),
);
});
});
});