diff --git a/__tests__/RoomItem.js b/__tests__/RoomItem.js
index fbc92f2d8..627682345 100644
--- a/__tests__/RoomItem.js
+++ b/__tests__/RoomItem.js
@@ -5,28 +5,30 @@ import RoomItem from '../app/presentation/RoomItem';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
+const date = new Date(2017, 10, 10, 10);
+
jest.mock('react-native-img-cache', () => { return { CachedImage: 'View' } });
it('renders correctly', () => {
- expect(renderer.create().toJSON()).toMatchSnapshot();
+ expect(renderer.create().toJSON()).toMatchSnapshot();
});
it('render unread', () => {
- expect(renderer.create().toJSON()).toMatchSnapshot();
+ expect(renderer.create().toJSON()).toMatchSnapshot();
});
it('render unread +999', () => {
- expect(renderer.create().toJSON()).toMatchSnapshot();
+ expect(renderer.create().toJSON()).toMatchSnapshot();
});
it('render no icon', () => {
- expect(renderer.create().toJSON()).toMatchSnapshot();
+ expect(renderer.create().toJSON()).toMatchSnapshot();
});
it('render private group', () => {
- expect(renderer.create( ).toJSON()).toMatchSnapshot();
+ expect(renderer.create( ).toJSON()).toMatchSnapshot();
});
it('render channel', () => {
- expect(renderer.create().toJSON()).toMatchSnapshot();
+ expect(renderer.create().toJSON()).toMatchSnapshot();
});
diff --git a/__tests__/__snapshots__/RoomItem.js.snap b/__tests__/__snapshots__/RoomItem.js.snap
index 11d20cb8f..94d4559c8 100644
--- a/__tests__/__snapshots__/RoomItem.js.snap
+++ b/__tests__/__snapshots__/RoomItem.js.snap
@@ -73,24 +73,51 @@ exports[`render channel 1`] = `
-
- general
-
+
+ general
+
+
+ 2017-11-10T10:00:00-02:00
+
+
`;
@@ -124,24 +151,51 @@ exports[`render no icon 1`] = `
testID={undefined}
tvParallaxProperties={undefined}
>
-
- name
-
+
+ name
+
+
+ 2017-11-10T10:00:00-02:00
+
+
`;
@@ -175,24 +229,51 @@ exports[`render private group 1`] = `
testID={undefined}
tvParallaxProperties={undefined}
>
-
- private-group
-
+
+ private-group
+
+
+ 2017-11-10T10:00:00-02:00
+
+
`;
@@ -263,24 +344,51 @@ exports[`render unread +999 1`] = `
NA
-
- name
-
+
+ name
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- name
-
+
+ name
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- name
-
+
+ name
+
+
+ 2017-11-10T10:00:00-02:00
+
+
`;
diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap
index fb385ea80..8f2f46bb9 100644
--- a/__tests__/__snapshots__/Storyshots.test.js.snap
+++ b/__tests__/__snapshots__/Storyshots.test.js.snap
@@ -243,24 +243,51 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
}
/>
-
- rocket.cat
-
+
+ rocket.cat
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- rocket.cat
-
+
+ rocket.cat
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- rocket.cat
-
+
+ rocket.cat
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- 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
-
+
+ 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
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- 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
-
+
+ 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
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- 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
-
+
+ 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
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- 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
-
+
+ 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
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- W
-
+
+ W
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
- WW
-
+
+ WW
+
+
+ 2017-11-10T10:00:00-02:00
+
+
-
-
-
+
+
+
+
+ 2017-11-10T10:00:00-02:00
+
+
diff --git a/storybook/stories/Channels/DirectMessage.js b/storybook/stories/Channels/DirectMessage.js
index 8ca1c0d01..0f11d6fd1 100644
--- a/storybook/stories/Channels/DirectMessage.js
+++ b/storybook/stories/Channels/DirectMessage.js
@@ -3,62 +3,74 @@ import { ScrollView } from 'react-native';
import RoomItem from '../../../app/presentation/RoomItem';
+const date = new Date(2017, 10, 10, 10);
+
export default (