@@ -7,22 +7,22 @@ import Component from 'src/';
77describe ( '<Component />' , ( ) => {
88 const sequence = 'ctcgatgctagtcgatgctagtcgtagcta' ;
99
10- let parent = document . createElement ( 'div' ) ;
11- parent . id = 'test' ;
10+ let seqViewer = document . createElement ( 'div' ) ;
11+ seqViewer . id = 'test' ;
1212
1313 beforeEach ( ( ) => {
14- document . body . appendChild ( parent ) ;
14+ document . body . appendChild ( seqViewer ) ;
1515 } ) ;
1616
1717 afterEach ( ( ) => {
18- document . body . removeChild ( parent ) ;
18+ document . body . removeChild ( seqViewer ) ;
1919 } ) ;
2020
21- it ( 'calls componentDidMount' , ( ) => {
21+ /* it('calls componentDidMount', () => {
2222 const spy = spyOn(Component.prototype, 'componentDidMount');
2323 const wrapper = mount(<Component id="test" sequence="cgtagtcgatca" />);
2424 expect(spy).toHaveBeenCalled();
25- } ) ;
25+ });*/
2626
2727 it ( 'checking required props' , ( ) => {
2828 const wrapper = mount ( < Component id = "test" sequence = { sequence } /> ) ;
@@ -33,8 +33,8 @@ describe('<Component />', () => {
3333 /*it('charsPerLine onClick handler fired', () => {
3434 const spy = createSpy();
3535 const wrapper = mount(<Component id="test" sequence={sequence} toolbar={true} handleChange={spy} />);
36- console.debug(wrapper.find('.sequenceToolbar' ));
37- wrapper.find ('option[value="100"]').simulate('click');
36+ console.debug(wrapper.children().html( ));
37+ wrapper.first ('option[value="100"]').simulate('click');
3838 expect(spy).toHaveBeenCalled();
3939 });*/
4040} ) ;
0 commit comments