Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
36 lines
819 B
TypeScript
36 lines
819 B
TypeScript
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
|
import nock from 'nock';
|
|
|
|
const API_RESPONSE = {
|
|
ok: true,
|
|
usergroup: {
|
|
id: 'S0615G0KT',
|
|
team_id: 'T060RNRCH',
|
|
is_usergroup: true,
|
|
name: 'Marketing Team',
|
|
description: 'Marketing gurus, PR experts and product advocates.',
|
|
handle: 'marketing-team',
|
|
is_external: false,
|
|
date_create: 1446746793,
|
|
date_update: 1446746793,
|
|
date_delete: 0,
|
|
auto_type: null,
|
|
created_by: 'U060RNRCZ',
|
|
updated_by: 'U060RNRCZ',
|
|
deleted_by: null,
|
|
prefs: {
|
|
channels: [],
|
|
groups: [],
|
|
},
|
|
user_count: '0',
|
|
},
|
|
};
|
|
|
|
describe('Test SlackV2, userGroup => create', () => {
|
|
nock('https://slack.com').post('/api/usergroups.create').reply(200, API_RESPONSE);
|
|
|
|
new NodeTestHarness().setupTests({
|
|
workflowFiles: ['create.workflow.json'],
|
|
});
|
|
});
|