SymphonyElectron/spec/loadingScreen.spec.ts

18 lines
635 B
TypeScript
Raw Normal View History

2019-03-13 02:01:05 -05:00
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);
});
});