From 8e48058fffadafc3d31093469c0a2a6f1d9c1535 Mon Sep 17 00:00:00 2001 From: Miguel Alatzar Date: Fri, 19 Jul 2019 17:29:17 -0700 Subject: [PATCH] [MM-16910] Set footerColor the same as navBarBackgroundColor (#3002) * Set footerColor the same as navBarBackgroundColor * Oops, forgot __snapshots__ --- .../__snapshots__/main_sidebar.test.js.snap | 13 +++++++ app/components/sidebars/main/main_sidebar.js | 2 +- .../sidebars/main/main_sidebar.test.js | 38 +++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 app/components/sidebars/main/__snapshots__/main_sidebar.test.js.snap create mode 100644 app/components/sidebars/main/main_sidebar.test.js diff --git a/app/components/sidebars/main/__snapshots__/main_sidebar.test.js.snap b/app/components/sidebars/main/__snapshots__/main_sidebar.test.js.snap new file mode 100644 index 000000000..b60408525 --- /dev/null +++ b/app/components/sidebars/main/__snapshots__/main_sidebar.test.js.snap @@ -0,0 +1,13 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ChannelSidebar should match, full snapshot 1`] = ` + +`; diff --git a/app/components/sidebars/main/main_sidebar.js b/app/components/sidebars/main/main_sidebar.js index edb8d6ddd..d489946db 100644 --- a/app/components/sidebars/main/main_sidebar.js +++ b/app/components/sidebars/main/main_sidebar.js @@ -378,7 +378,7 @@ export default class ChannelSidebar extends Component { { + const baseProps = { + actions: { + getTeams: jest.fn(), + logChannelSwitch: jest.fn(), + makeDirectChannel: jest.fn(), + setChannelDisplayName: jest.fn(), + setChannelLoading: jest.fn(), + }, + blurPostTextBox: jest.fn(), + currentTeamId: 'current-team-id', + currentUserId: 'current-user-id', + deviceWidth: 10, + isLandscape: false, + teamsCount: 2, + theme: Preferences.THEMES.default, + }; + + test('should match, full snapshot', () => { + const wrapper = shallow( + + ); + + expect(wrapper.getElement()).toMatchSnapshot(); + }); +});