blob: cf8a31e079cd76c4e6465076f48f476d4d05345e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React from 'react';
import {shallow} from 'enzyme';
import * as Utils from 'utils/utils.jsx';
import AddCommand from 'components/integrations/components/add_command/add_command.jsx';
describe('components/integrations/AddCommand', () => {
test('should match snapshot', () => {
function emptyFunction() {} //eslint-disable-line no-empty-function
const teamId = Utils.generateId();
const wrapper = shallow(
<AddCommand
team={{
id: teamId,
name: 'test'
}}
addCommandRequest={{
status: 'not_started',
error: null
}}
actions={{addCommand: emptyFunction}}
/>
);
expect(wrapper).toMatchSnapshot();
});
});
|