Files
redash/client/app/components/UserShow.test.js
Omer Lachish 670d86eb5f Simple user view (#3244)
* show a simple user details page when viewing a user who isn't you (or you arent the admin)

* add a snapshot test

* lint
2019-01-03 15:23:40 +02:00

11 lines
357 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();
});