From 69e04a4c268b7533c4edca907b9012cbb22be731 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Fri, 16 Feb 2018 14:02:04 -0200 Subject: [PATCH] snap --- __tests__/RoomItem.js | 2 +- __tests__/__snapshots__/RoomItem.js.snap | 237 +++++--- .../__snapshots__/Storyshots.test.js.snap | 558 +++++++++++++----- app/containers/status.js | 2 +- app/presentation/RoomItem.js | 2 +- 5 files changed, 556 insertions(+), 245 deletions(-) diff --git a/__tests__/RoomItem.js b/__tests__/RoomItem.js index cc4d76d2..253b5d45 100644 --- a/__tests__/RoomItem.js +++ b/__tests__/RoomItem.js @@ -3,7 +3,7 @@ import { Provider } from 'react-redux'; import { createStore, combineReducers } from 'redux'; -const reducers = combineReducers({settings:() => ({})}); +const reducers = combineReducers({login:() => ({user: {}}), settings:() => ({})}); const store = createStore(reducers); import React from 'react'; diff --git a/__tests__/__snapshots__/RoomItem.js.snap b/__tests__/__snapshots__/RoomItem.js.snap index cdcb1f8e..4bb3753e 100644 --- a/__tests__/__snapshots__/RoomItem.js.snap +++ b/__tests__/__snapshots__/RoomItem.js.snap @@ -33,7 +33,7 @@ exports[`render channel 1`] = ` style={ Array [ Object { - "alignItems": "flex-start", + "alignItems": "center", "borderBottomColor": "#ddd", "borderBottomWidth": 0.5, "flexDirection": "row", @@ -50,13 +50,12 @@ exports[`render channel 1`] = ` Object { "alignItems": "center", "justifyContent": "center", - "overflow": "hidden", }, Object { "backgroundColor": "#00BCD4", "borderRadius": 4, - "height": 56, - "width": 56, + "height": 46, + "width": 46, }, undefined, ] @@ -77,7 +76,7 @@ exports[`render channel 1`] = ` "color": "#ffffff", }, Object { - "fontSize": 28, + "fontSize": 23, }, ], Object { @@ -118,13 +117,15 @@ exports[`render channel 1`] = ` ellipsizeMode="tail" numberOfLines={1} style={ - Object { - "color": "#444", - "flex": 1, - "fontSize": 18, - "fontWeight": "bold", - "marginRight": 8, - } + Array [ + Object { + "color": "#444", + "flex": 1, + "fontSize": 18, + "marginRight": 8, + }, + undefined, + ] } > general @@ -149,10 +150,10 @@ exports[`render channel 1`] = ` name @@ -312,10 +314,10 @@ exports[`render no icon 1`] = ` private-group @@ -475,10 +478,10 @@ exports[`render private group 1`] = ` + name @@ -629,10 +654,10 @@ exports[`render unread +999 1`] = ` + name @@ -805,10 +852,10 @@ exports[`render unread 1`] = ` + name @@ -981,10 +1050,10 @@ exports[`renders correctly 1`] = ` + rocket.cat @@ -295,10 +313,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + rocket.cat @@ -443,10 +485,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + rocket.cat @@ -591,10 +655,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries @@ -762,10 +850,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries @@ -933,10 +1043,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries @@ -1104,10 +1236,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries @@ -1275,10 +1429,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries @@ -1446,10 +1622,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + W @@ -1617,10 +1815,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + WW @@ -1765,10 +1985,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` + @@ -1913,10 +2155,10 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = ` { }; @connect(state => ({ - user: state.login.user, + user: state.login && state.login.user, StoreLastMessage: state.settings.Store_Last_Message, customEmojis: state.customEmojis }))