Skip to content

Commit

Permalink
Fix tests for new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pemontto committed May 21, 2024
1 parent 72f5a5f commit 0a2903e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/workflow/test/NodeErrors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ describe('NodeErrors tests', () => {
const nodeOperationError = new NodeOperationError(node, 'ENOTFOUND test error message');

expect(nodeOperationError.message).toEqual(
'The connection cannot be established, this usually occurs due to an incorrect host(domain) value',
'The connection cannot be established, this usually occurs due to an incorrect host (domain) value',
);
});

it('should return default message for ENOTFOUND, NodeApiError', () => {
const nodeApiError = new NodeApiError(node, { message: 'ENOTFOUND test error message' });

expect(nodeApiError.message).toEqual(
'The connection cannot be established, this usually occurs due to an incorrect host(domain) value',
'The connection cannot be established, this usually occurs due to an incorrect host (domain) value',
);
});

Expand Down

0 comments on commit 0a2903e

Please sign in to comment.