blob: 420bb2bfe0a213bb3eff1049e35a47ee13559315 (
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
|
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React from 'react';
import {shallow} from 'enzyme';
import ResetStatusModal from 'components/reset_status_modal/reset_status_modal.jsx';
describe('components/ResetStatusModal', () => {
test('should match snapshot', () => {
function emptyFunction() {} //eslint-disable-line no-empty-function
async function fakeAutoReset() { //eslint-disable-line require-await
return {status: 'away', manual: true, user_id: 'fake'};
}
const wrapper = shallow(
<ResetStatusModal
autoResetPref=''
actions={{
autoResetStatus: fakeAutoReset,
setStatus: emptyFunction,
savePreferences: emptyFunction
}}
/>
);
expect(wrapper).toMatchSnapshot();
});
});
|