diff --git a/app/screens/channel/channel_nav_bar/channel_drawer_button/__snapshots__/channel_drawer_button.test.js.snap b/app/screens/channel/channel_nav_bar/channel_drawer_button/__snapshots__/channel_drawer_button.test.js.snap index df71b3cb8..42aec1dc8 100644 --- a/app/screens/channel/channel_nav_bar/channel_drawer_button/__snapshots__/channel_drawer_button.test.js.snap +++ b/app/screens/channel/channel_nav_bar/channel_drawer_button/__snapshots__/channel_drawer_button.test.js.snap @@ -2,6 +2,10 @@ exports[`ChannelDrawerButton should match, full snapshot 1`] = ` diff --git a/app/screens/channel/channel_nav_bar/channel_drawer_button/channel_drawer_button.test.js b/app/screens/channel/channel_nav_bar/channel_drawer_button/channel_drawer_button.test.js index cd9eef22a..499cf4a22 100644 --- a/app/screens/channel/channel_nav_bar/channel_drawer_button/channel_drawer_button.test.js +++ b/app/screens/channel/channel_nav_bar/channel_drawer_button/channel_drawer_button.test.js @@ -2,13 +2,13 @@ // See LICENSE.txt for license information. import React from 'react'; -import {shallow} from 'enzyme'; import NotificationsIOS from 'react-native-notifications'; import Preferences from 'mattermost-redux/constants/preferences'; import Badge from 'app/components/badge'; import PushNotification from 'app/push_notifications/push_notifications.ios'; +import {shallowWithIntl} from 'test/intl-test-helper'; import ChannelDrawerButton from './channel_drawer_button'; @@ -48,7 +48,7 @@ describe('ChannelDrawerButton', () => { afterEach(() => NotificationsIOS.setBadgesCount(0)); test('should match, full snapshot', () => { - const wrapper = shallow( + const wrapper = shallowWithIntl( ); @@ -69,7 +69,7 @@ describe('ChannelDrawerButton', () => { badgeCount: 0, }; - shallow( + shallowWithIntl( ); expect(setApplicationIconBadgeNumber).not.toBeCalled(); @@ -83,7 +83,7 @@ describe('ChannelDrawerButton', () => { badgeCount: 1, }; - shallow( + shallowWithIntl( ); expect(setApplicationIconBadgeNumber).toHaveBeenCalledTimes(1); @@ -97,7 +97,7 @@ describe('ChannelDrawerButton', () => { badgeCount: 0, }; - const wrapper = shallow( + const wrapper = shallowWithIntl( ); NotificationsIOS.getBadgesCount((count) => expect(count).toBe(0)); @@ -115,7 +115,7 @@ describe('ChannelDrawerButton', () => { badgeCount: 0, }; - const wrapper = shallow( + const wrapper = shallowWithIntl( ); wrapper.setProps({badgeCount: 2}); diff --git a/assets/base/i18n/en.json b/assets/base/i18n/en.json index 61fad8f9c..bf311153b 100644 --- a/assets/base/i18n/en.json +++ b/assets/base/i18n/en.json @@ -486,6 +486,8 @@ "msg_typing.areTyping": "{users} and {last} are typing...", "msg_typing.isTyping": "{user} is typing...", "navbar_dropdown.logout": "Logout", + "navbar.channel_drawer.button": "Channels and teams", + "navbar.channel_drawer.hint": "Opens the channels and teams drawer", "navbar.leave": "Leave Channel", "password_form.title": "Password Reset", "password_send.checkInbox": "Please check your inbox.",