From f470636a70943a8ecad8bddc791a1c2dddd28e1e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 4 May 2019 21:13:12 +0300 Subject: Components -> UI --- vnext/src/ui/__tests__/Avatar.test.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vnext/src/ui/__tests__/Avatar.test.js (limited to 'vnext/src/ui/__tests__/Avatar.test.js') diff --git a/vnext/src/ui/__tests__/Avatar.test.js b/vnext/src/ui/__tests__/Avatar.test.js new file mode 100644 index 00000000..e7221871 --- /dev/null +++ b/vnext/src/ui/__tests__/Avatar.test.js @@ -0,0 +1,15 @@ +import React from 'react'; +import { MemoryRouter } from 'react-router-dom'; + +import Avatar from '../Avatar'; +import renderer from 'react-test-renderer'; + +test('Avatar renders correctly', () => { + const component = renderer.create( + + + + ); + let tree = component.toJSON(); + expect(tree).toMatchSnapshot(); +}); -- cgit v1.2.3