mirror of
https://github.com/getredash/redash.git
synced 2026-05-11 00:00:57 -04:00
10 lines
356 B
JavaScript
10 lines
356 B
JavaScript
import React from 'react';
|
|
import renderer from 'react-test-renderer';
|
|
import { UserShow } from './UserShow';
|
|
|
|
test('renders correctly', () => {
|
|
const component = renderer.create(<UserShow name="John Doe" email="john@doe.com" profileImageUrl="http://www.images.com/llama.jpg" />);
|
|
const tree = component.toJSON();
|
|
expect(tree).toMatchSnapshot();
|
|
});
|