chore: Fix failing unit tests (no-changelog) (#15073)

This commit is contained in:
Shireen Missi
2025-05-02 20:52:32 +01:00
committed by GitHub
parent e01bab58a5
commit f119ccbe3b
16 changed files with 64 additions and 176 deletions

View File

@@ -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 - Delete Group', () => {
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
filename.includes('delete.workflow.json'),
);
beforeAll(async () => {
await initBinaryDataService();
});
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
@@ -18,5 +9,7 @@ describe('Google GSuiteAdmin Node - Delete Group', () => {
.reply(204, '');
});
testWorkflows(workflows);
new NodeTestHarness().setupTests({
workflowFiles: ['delete.workflow.json'],
});
});