blob: 04fa51a7666d8ce43f4894ca2d38128a1d414c27 (
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
|
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React from 'react';
import {mountWithIntl} from 'tests/helpers/intl-test-helper.jsx';
import ShortcutsModal from 'components/shortcuts_modal.jsx';
describe('components/ShortcutsModal', () => {
test('should match snapshot modal for Mac', () => {
const wrapper = mountWithIntl(
<ShortcutsModal isMac={true}/>
);
expect(wrapper).toMatchSnapshot();
});
test('should match snapshot modal for non-Mac like Windows/Linux', () => {
const wrapper = mountWithIntl(
<ShortcutsModal isMac={false}/>
);
expect(wrapper).toMatchSnapshot();
});
});
|