mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
finish test
This commit is contained in:
parent
4933347fb4
commit
ee309ad4e9
|
@ -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();
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue
Block a user