Add back tests

This commit is contained in:
Diego Sampaio 2017-08-22 15:22:55 -03:00
parent 860da9b0af
commit d241bc5025
No known key found for this signature in database
GPG Key ID: E060152B30502562
1 changed files with 12 additions and 0 deletions

View File

@ -18,3 +18,15 @@ it('render unread', () => {
it('render unread +999', () => {
expect(renderer.create(<RoomItem type="d" name="name" unread={1000} />).toJSON()).toMatchSnapshot();
});
it('render no icon', () => {
expect(renderer.create(<RoomItem type="X" name="name" />).toJSON()).toMatchSnapshot();
});
it('render private group', () => {
expect(renderer.create(<RoomItem type="g" name="private-group" /> ).toJSON()).toMatchSnapshot();
});
it('render channel', () => {
expect(renderer.create(<RoomItem type="c" name="general" />).toJSON()).toMatchSnapshot();
});