fix(HTTP Request Node): Show detailed error message in the UI again (#5959)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-04-12 14:58:05 +02:00
committed by GitHub
parent 60d28fc761
commit e79679c023
7 changed files with 141 additions and 38 deletions

View File

@@ -1,17 +1,14 @@
import {
createDeferredPromise,
IConnections,
ILogger,
INode,
IRun,
LoggerProxy,
Workflow,
} from 'n8n-workflow';
import { createDeferredPromise, IConnections, INode, IRun, Workflow } from 'n8n-workflow';
import { WorkflowExecute } from '@/WorkflowExecute';
import * as Helpers from './Helpers';
import { initLogger } from './utils';
describe('WorkflowExecute', () => {
beforeAll(() => {
initLogger();
});
describe('run', () => {
const tests: Array<{
description: string;
@@ -1352,18 +1349,8 @@ describe('WorkflowExecute', () => {
},
];
const fakeLogger = {
log: () => {},
debug: () => {},
verbose: () => {},
info: () => {},
warn: () => {},
error: () => {},
} as ILogger;
const executionMode = 'manual';
const nodeTypes = Helpers.NodeTypes();
LoggerProxy.init(fakeLogger);
for (const testData of tests) {
test(testData.description, async () => {