mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
28 lines
670 B
TypeScript
28 lines
670 B
TypeScript
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
|
import nock from 'nock';
|
|
|
|
describe('Google GSuiteAdmin Node - Create Group', () => {
|
|
beforeEach(() => {
|
|
nock.disableNetConnect();
|
|
nock('https://www.googleapis.com/admin')
|
|
.post('/directory/v1/groups', {
|
|
email: 'NewOnes22@example.com',
|
|
name: 'Test',
|
|
description: 'test',
|
|
})
|
|
.reply(200, {
|
|
kind: 'admin#directory#group',
|
|
id: '03mzq4wv15cepg2',
|
|
etag: '"example"',
|
|
email: 'NewOnes22@example.com',
|
|
name: 'Test',
|
|
description: 'test',
|
|
adminCreated: true,
|
|
});
|
|
});
|
|
|
|
new NodeTestHarness().setupTests({
|
|
workflowFiles: ['create.workflow.json'],
|
|
});
|
|
});
|