mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Overhaul nodes-testing setup - Part 3 (no-changelog) (#14967)
This commit is contained in:
committed by
GitHub
parent
3e43f9f8bc
commit
979f9e6327
@@ -1,7 +1,6 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
import { getWorkflowFilenames, testWorkflows } from '@test/nodes/Helpers';
|
||||
|
||||
describe('Test Binary Data Download', () => {
|
||||
const baseUrl = 'https://dummy.domain';
|
||||
|
||||
@@ -21,6 +20,5 @@ describe('Test Binary Data Download', () => {
|
||||
});
|
||||
});
|
||||
|
||||
const workflows = getWorkflowFilenames(__dirname);
|
||||
testWorkflows(workflows);
|
||||
new NodeTestHarness().setupTests({ assertBinaryData: true });
|
||||
});
|
||||
|
||||
@@ -6,10 +6,7 @@
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"parameters": {},
|
||||
"position": [
|
||||
580,
|
||||
300
|
||||
]
|
||||
"position": [580, 300]
|
||||
},
|
||||
{
|
||||
"name": "HTTP Request (v1)",
|
||||
@@ -19,10 +16,7 @@
|
||||
"url": "https://dummy.domain/path/to/image.png",
|
||||
"responseFormat": "file"
|
||||
},
|
||||
"position": [
|
||||
1020,
|
||||
-100
|
||||
]
|
||||
"position": [1020, -100]
|
||||
},
|
||||
{
|
||||
"name": "HTTP Request (v2)",
|
||||
@@ -33,10 +27,7 @@
|
||||
"responseFormat": "file",
|
||||
"options": {}
|
||||
},
|
||||
"position": [
|
||||
1020,
|
||||
80
|
||||
]
|
||||
"position": [1020, 80]
|
||||
},
|
||||
{
|
||||
"name": "HTTP Request (v3)",
|
||||
@@ -52,10 +43,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
1020,
|
||||
240
|
||||
]
|
||||
"position": [1020, 240]
|
||||
},
|
||||
{
|
||||
"name": "HTTP Request (v4)",
|
||||
@@ -71,10 +59,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
1020,
|
||||
400
|
||||
]
|
||||
"position": [1020, 400]
|
||||
},
|
||||
{
|
||||
"name": "Follow Redirect",
|
||||
@@ -90,10 +75,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
1020,
|
||||
560
|
||||
]
|
||||
"position": [1020, 560]
|
||||
},
|
||||
{
|
||||
"name": "Content Disposition",
|
||||
@@ -109,10 +91,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
1020,
|
||||
720
|
||||
]
|
||||
"position": [1020, 720]
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
@@ -120,6 +99,7 @@
|
||||
{
|
||||
"binary": {
|
||||
"data": {
|
||||
"data": "dGVzdA==",
|
||||
"mimeType": "image/png",
|
||||
"fileType": "image",
|
||||
"fileExtension": "png",
|
||||
@@ -134,6 +114,7 @@
|
||||
{
|
||||
"binary": {
|
||||
"data": {
|
||||
"data": "dGVzdA==",
|
||||
"mimeType": "image/png",
|
||||
"fileType": "image",
|
||||
"fileExtension": "png",
|
||||
@@ -148,6 +129,7 @@
|
||||
{
|
||||
"binary": {
|
||||
"data": {
|
||||
"data": "dGVzdA==",
|
||||
"mimeType": "image/png",
|
||||
"fileType": "image",
|
||||
"fileExtension": "png",
|
||||
@@ -162,6 +144,7 @@
|
||||
{
|
||||
"binary": {
|
||||
"data": {
|
||||
"data": "dGVzdA==",
|
||||
"mimeType": "image/png",
|
||||
"fileType": "image",
|
||||
"fileExtension": "png",
|
||||
@@ -176,6 +159,7 @@
|
||||
{
|
||||
"binary": {
|
||||
"data": {
|
||||
"data": "dGVzdA==",
|
||||
"mimeType": "image/png",
|
||||
"fileType": "image",
|
||||
"fileExtension": "png",
|
||||
@@ -190,6 +174,7 @@
|
||||
{
|
||||
"binary": {
|
||||
"data": {
|
||||
"data": "dGVzdGluZw==",
|
||||
"mimeType": "image/jpeg",
|
||||
"fileType": "image",
|
||||
"fileExtension": "jpg",
|
||||
|
||||
Reference in New Issue
Block a user