mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor: Overhaul nodes-testing setup - Part 2 (no-changelog) (#14873)
This commit is contained in:
committed by
GitHub
parent
897338bd24
commit
91069f057e
@@ -69,11 +69,9 @@ describe('Test Gmail Node v1', () => {
|
||||
.reply(200, messages[0]);
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Google/Gmail/test/v1/messages.workflow.json']);
|
||||
afterAll(() => gmailNock.done());
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
gmailNock.done();
|
||||
});
|
||||
testWorkflows(['nodes/Google/Gmail/test/v1/messages.workflow.json']);
|
||||
});
|
||||
|
||||
describe('Labels', () => {
|
||||
@@ -94,11 +92,9 @@ describe('Test Gmail Node v1', () => {
|
||||
});
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Google/Gmail/test/v1/labels.workflow.json']);
|
||||
afterAll(() => gmailNock.done());
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
gmailNock.done();
|
||||
});
|
||||
testWorkflows(['nodes/Google/Gmail/test/v1/labels.workflow.json']);
|
||||
});
|
||||
|
||||
describe('Message Labels', () => {
|
||||
@@ -113,11 +109,9 @@ describe('Test Gmail Node v1', () => {
|
||||
.reply(200, messages[0]);
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Google/Gmail/test/v1/message-labels.workflow.json']);
|
||||
afterAll(() => gmailNock.done());
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
gmailNock.done();
|
||||
});
|
||||
testWorkflows(['nodes/Google/Gmail/test/v1/message-labels.workflow.json']);
|
||||
});
|
||||
|
||||
describe('Drafts', () => {
|
||||
@@ -193,10 +187,8 @@ describe('Test Gmail Node v1', () => {
|
||||
});
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Google/Gmail/test/v1/drafts.workflow.json']);
|
||||
afterAll(() => gmailNock.done());
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
gmailNock.done();
|
||||
});
|
||||
testWorkflows(['nodes/Google/Gmail/test/v1/drafts.workflow.json']);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -129,11 +129,9 @@ describe('Test Gmail Node v2', () => {
|
||||
.reply(200, messages[0]);
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Google/Gmail/test/v2/messages.workflow.json']);
|
||||
afterAll(() => gmailNock.done());
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
gmailNock.done();
|
||||
});
|
||||
testWorkflows(['nodes/Google/Gmail/test/v2/messages.workflow.json']);
|
||||
});
|
||||
|
||||
describe('Labels', () => {
|
||||
@@ -154,11 +152,9 @@ describe('Test Gmail Node v2', () => {
|
||||
});
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Google/Gmail/test/v2/labels.workflow.json']);
|
||||
afterAll(() => gmailNock.done());
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
gmailNock.done();
|
||||
});
|
||||
testWorkflows(['nodes/Google/Gmail/test/v2/labels.workflow.json']);
|
||||
});
|
||||
|
||||
describe('Drafts', () => {
|
||||
@@ -244,11 +240,9 @@ describe('Test Gmail Node v2', () => {
|
||||
});
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Google/Gmail/test/v2/drafts.workflow.json']);
|
||||
afterAll(() => gmailNock.done());
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
gmailNock.done();
|
||||
});
|
||||
testWorkflows(['nodes/Google/Gmail/test/v2/drafts.workflow.json']);
|
||||
});
|
||||
|
||||
describe('Threads', () => {
|
||||
@@ -307,11 +301,9 @@ describe('Test Gmail Node v2', () => {
|
||||
.reply(200, messages[0]);
|
||||
});
|
||||
|
||||
testWorkflows(['nodes/Google/Gmail/test/v2/threads.workflow.json']);
|
||||
afterAll(() => gmailNock.done());
|
||||
|
||||
it('should make the correct network calls', () => {
|
||||
gmailNock.done();
|
||||
});
|
||||
testWorkflows(['nodes/Google/Gmail/test/v2/threads.workflow.json']);
|
||||
});
|
||||
|
||||
describe('loadOptions', () => {
|
||||
|
||||
Reference in New Issue
Block a user