scaffolder-backend-module-confluence-to-markdown: fix error message

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-02-15 13:26:10 +01:00
parent 8a3932ffe8
commit b354046dad
@@ -221,7 +221,7 @@ describe('confluence:transform:markdown', () => {
const action = createConfluenceToMarkdownAction(options);
await expect(async () => {
await action.handler(mockContext);
}).rejects.toThrow('Request failed with 401 Error');
}).rejects.toThrow('Request failed with 401 nope');
});
it('should return nothing in results from the first api call and fail', async () => {
@@ -284,6 +284,6 @@ describe('confluence:transform:markdown', () => {
const action = createConfluenceToMarkdownAction(options);
await expect(async () => {
await action.handler(mockContext);
}).rejects.toThrow('Request failed with 404 Error');
}).rejects.toThrow('Request failed with 404 nope');
});
});