mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
18 lines
635 B
TypeScript
18 lines
635 B
TypeScript
import { shallow } from 'enzyme';
|
|
import * as React from 'react';
|
|
import LoadingScreen from '../src/renderer/components/loading-screen';
|
|
|
|
describe('loading screen', () => {
|
|
it('should render correctly', () => {
|
|
const wrapper = shallow(React.createElement(LoadingScreen));
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
|
|
it('should show app name correctly', () => {
|
|
const customSelector = '.LoadingScreen-name';
|
|
const wrapper = shallow(React.createElement(LoadingScreen));
|
|
const expectedValue = 'Symphony';
|
|
expect(wrapper.find(customSelector).text()).toBe(expectedValue);
|
|
});
|
|
});
|