mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
chore: Fix failing unit tests (no-changelog) (#15073)
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
||||
|
||||
describe('Google GSuiteAdmin Node', () => {
|
||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
||||
filename.includes('changeStatus.workflow.json'),
|
||||
);
|
||||
|
||||
beforeAll(async () => {
|
||||
await initBinaryDataService();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
nock.disableNetConnect();
|
||||
nock('https://www.googleapis.com/admin')
|
||||
@@ -27,5 +18,7 @@ describe('Google GSuiteAdmin Node', () => {
|
||||
});
|
||||
});
|
||||
|
||||
testWorkflows(workflows);
|
||||
new NodeTestHarness().setupTests({
|
||||
workflowFiles: ['changeStatus.workflow.json'],
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user