[web] Fix 100% coverage for js/components/FlowTable/FlowColumns.js
This commit is contained in:
parent
2935ff5f3a
commit
546bac68d4
|
@ -45,6 +45,12 @@ describe('FlowColumns Components', () => {
|
||||||
iconColumn = renderer.create(<Columns.IconColumn flow={cssFlow}/>)
|
iconColumn = renderer.create(<Columns.IconColumn flow={cssFlow}/>)
|
||||||
tree = iconColumn.toJSON()
|
tree = iconColumn.toJSON()
|
||||||
expect(tree).toMatchSnapshot()
|
expect(tree).toMatchSnapshot()
|
||||||
|
// html
|
||||||
|
let htmlFlow = TFlow()
|
||||||
|
htmlFlow.response.headers = [['Content-Type', 'text/html']]
|
||||||
|
iconColumn = renderer.create(<Columns.IconColumn flow={htmlFlow}/>)
|
||||||
|
tree = iconColumn.toJSON()
|
||||||
|
expect(tree).toMatchSnapshot()
|
||||||
// default
|
// default
|
||||||
let fooFlow = TFlow()
|
let fooFlow = TFlow()
|
||||||
fooFlow.response.headers = [['Content-Type', 'foo']]
|
fooFlow.response.headers = [['Content-Type', 'foo']]
|
||||||
|
|
|
@ -65,7 +65,7 @@ exports[`FlowColumns Components should render IconColumn 7`] = `
|
||||||
className="col-icon"
|
className="col-icon"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="resource-icon resource-icon-plain"
|
className="resource-icon resource-icon-document"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
`;
|
`;
|
||||||
|
@ -80,6 +80,16 @@ exports[`FlowColumns Components should render IconColumn 8`] = `
|
||||||
</td>
|
</td>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
exports[`FlowColumns Components should render IconColumn 9`] = `
|
||||||
|
<td
|
||||||
|
className="col-icon"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className="resource-icon resource-icon-plain"
|
||||||
|
/>
|
||||||
|
</td>
|
||||||
|
`;
|
||||||
|
|
||||||
exports[`FlowColumns Components should render MethodColumn 1`] = `
|
exports[`FlowColumns Components should render MethodColumn 1`] = `
|
||||||
<td
|
<td
|
||||||
className="col-method"
|
className="col-method"
|
||||||
|
|
Loading…
Reference in New Issue