Merge pull request #4338 from backstage/orkohunter/windows-azure-techdocs-test

techdocs: Fix broken tests on Windows
This commit is contained in:
Fredrik Adelöw
2021-02-01 14:03:26 +01:00
committed by GitHub
@@ -115,10 +115,8 @@ describe('AzureBlobStoragePublish', () => {
directory: wrongPathToGeneratedDirectory,
})
.catch(error =>
expect(error).toEqual(
new Error(
`Unable to upload file(s) to Azure Blob Storage. Error Failed to read template directory: ENOENT, no such file or directory '${wrongPathToGeneratedDirectory}'`,
),
expect(error.message).toContain(
'Unable to upload file(s) to Azure Blob Storage. Error Failed to read template directory: ENOENT, no such file or directory',
),
);
mockFs.restore();