Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/Google/GSuiteAdmin/test/device/changeStatus.test.ts
2025-05-02 20:52:32 +01:00

25 lines
606 B
TypeScript

import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Google GSuiteAdmin Node', () => {
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
.post(
'/directory/v1/customer/my_customer/devices/chromeos/9140fcff-7ba7-4324-8552-f7de68481b4c/action',
{
action: 'reenable',
},
)
.reply(200, {
kind: 'admin#directory#chromeosdeviceAction',
action: 'reenable',
status: 'SUCCESS',
});
});
new NodeTestHarness().setupTests({
workflowFiles: ['changeStatus.workflow.json'],
});
});