diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:04:13 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:11:58 -0700 |
commit | d8bd57901e33a7057e26e782e295099ffcc0da89 (patch) | |
tree | e12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/tests/plugins/pluggable.test.jsx | |
parent | 7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff) | |
download | chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2 chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip |
Removing webapp
Diffstat (limited to 'webapp/tests/plugins/pluggable.test.jsx')
-rw-r--r-- | webapp/tests/plugins/pluggable.test.jsx | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/webapp/tests/plugins/pluggable.test.jsx b/webapp/tests/plugins/pluggable.test.jsx deleted file mode 100644 index 96dedb037..000000000 --- a/webapp/tests/plugins/pluggable.test.jsx +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import React from 'react'; -import {mount} from 'enzyme'; -import {IntlProvider} from 'react-intl'; - -import Pluggable from 'plugins/pluggable/pluggable.jsx'; -import ProfilePopover from 'components/profile_popover.jsx'; - -class ProfilePopoverPlugin extends React.PureComponent { - render() { - return <span>{'ProfilePopoverPlugin'}</span>; - } -} - -describe('plugins/Pluggable', () => { - test('should match snapshot with overridden component', () => { - const wrapper = mount( - <Pluggable - components={{ProfilePopover: ProfilePopoverPlugin}} - theme={{}} - > - <ProfilePopover - user={{}} - src='src' - /> - </Pluggable> - ); - expect(wrapper).toMatchSnapshot(); - }); - - test('should match snapshot with no overridden component', () => { - window.mm_config = {}; - const wrapper = mount( - <IntlProvider> - <Pluggable - components={{}} - theme={{}} - > - <ProfilePopover - user={{}} - src='src' - /> - </Pluggable> - </IntlProvider> - ); - expect(wrapper).toMatchSnapshot(); - }); -}); |