mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
22 lines
591 B
TypeScript
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);
|
|
});
|