finish test

This commit is contained in:
Nathan Bierema 2020-09-29 09:08:04 -04:00
parent 4933347fb4
commit ee309ad4e9
2 changed files with 5 additions and 15 deletions

View File

@ -1,5 +1,5 @@
import React, { ReactComponentElement } from 'react'; import React, { ReactComponentElement } from 'react';
import { configure, mount } from 'enzyme'; import { configure, mount, ReactWrapper } from 'enzyme';
import toJson from 'enzyme-to-json'; import toJson from 'enzyme-to-json';
import StackTraceTab from '../src/StackTraceTab'; import StackTraceTab from '../src/StackTraceTab';
@ -7,8 +7,8 @@ import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() }); configure({ adapter: new Adapter() });
function genAsyncSnapshot( function genAsyncSnapshot(
component: ReactComponentElement<any>, component: ReactWrapper<any, any, any>,
done: boolean done: () => void
) { ) {
setTimeout(() => { setTimeout(() => {
component.update(); component.update();

View File

@ -301,12 +301,7 @@ exports[`StackTraceTab component should render with trace stack 1`] = `
} }
} }
> >
<span <span>
onClick={null}
onKeyDown={null}
style={null}
tabIndex={null}
>
app.js:72:24 app.js:72:24
</span> </span>
</div> </div>
@ -345,12 +340,7 @@ exports[`StackTraceTab component should render with trace stack 1`] = `
} }
} }
> >
<span <span>
onClick={null}
onKeyDown={null}
style={null}
tabIndex={null}
>
app.js:84:31 app.js:84:31
</span> </span>
</div> </div>