mirror of
https://github.com/getredash/redash.git
synced 2026-05-10 15:00:16 -04:00
* show a simple user details page when viewing a user who isn't you (or you arent the admin) * add a snapshot test * lint
11 lines
357 B
JavaScript
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();
|
|
});
|
|
|