Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/HttpRequest/test/encoding/HttpRequest.test.ts
कारतोफ्फेलस्क्रिप्ट™ 91069f057e refactor: Overhaul nodes-testing setup - Part 2 (no-changelog) (#14873)
2025-04-24 17:37:26 +02:00

22 lines
591 B
TypeScript

import nock from 'nock';
import { getWorkflowFilenames, testWorkflows } from '@test/nodes/Helpers';
describe('Test Response Encoding', () => {
const baseUrl = 'https://dummy.domain';
const payload = Buffer.from(
'El rápido zorro marrón salta sobre el perro perezoso. ¡Qué bello día en París! Árbol, cañón, façade.',
'latin1',
);
beforeAll(async () => {
nock(baseUrl)
.persist()
.get('/index.html')
.reply(200, payload, { 'content-type': 'text/plain; charset=latin1' });
});
const workflows = getWorkflowFilenames(__dirname);
testWorkflows(workflows);
});