test(jest): cleanup console warnings/errors (#6547)

This commit is contained in:
Tim Lai
2020-10-21 17:35:33 -07:00
committed by GitHub
parent 0a807d6237
commit 671e945376
3 changed files with 7 additions and 6 deletions

View File

@@ -29,7 +29,6 @@ describe("<ResponseBody />", function() {
it("renders ResponseBody as 'image/svg'", function() {
props.contentType = "image/svg"
const wrapper = shallow(<ResponseBody {...props}/>)
console.warn(wrapper.debug())
expect(wrapper.find("highlightCodeComponent").length).toEqual(0)
})
@@ -37,7 +36,6 @@ describe("<ResponseBody />", function() {
props.contentType = "text/plain"
props.content = "test text"
const wrapper = shallow(<ResponseBody {...props}/>)
console.warn(wrapper.debug())
expect(wrapper.find("highlightCodeComponent[canCopy]").length).toEqual(1)
})
})