vault: fix error message

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-02-15 13:25:01 +01:00
parent f4cf3f3dd4
commit 276781c2dd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ describe('api', () => {
it('should throw an error if the Vault API responds with a non-successful HTTP status code', async () => {
await expect(api.listSecrets('test/error')).rejects.toThrow(
'Request failed with 400 Error',
'Request failed with 400 Bad Request',
);
});
});
@@ -161,7 +161,7 @@ describe('EntityVaultTable', () => {
expect(
rendered.getByText(
/Unexpected error while fetching secrets from path \'test\/error\'\: Request failed with 400 Error/,
/Unexpected error while fetching secrets from path \'test\/error\'\: Request failed with 400 Bad Request/,
),
).toBeInTheDocument();
});