SymphonyElectron/spec/loadingScreen.spec.ts
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS 663b512dc3 loading screen unit test (#588)
2019-04-02 10:57:26 +05:30

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);
});
});