techdocs: Fix broken tests on Windows

https://github.com/backstage/backstage/runs/1805649470\?check_suite_focus\=true
This commit is contained in:
Himanshu Mishra
2021-02-01 13:36:46 +01:00
parent 9d8acd77a5
commit 3bdd6eac07
@@ -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();