We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76afc50 commit 4aa9f79Copy full SHA for 4aa9f79
test/specs/wrapper/html.spec.js
@@ -39,4 +39,21 @@ describeWithShallowAndMount('html', mountingMethod => {
39
const wrapper = mountingMethod(compiled)
40
expect(wrapper.html()).to.equal(expectedHtml)
41
})
42
+
43
+ it('returns a Wrappers HTML as a pretty printed string', () => {
44
+ const expectedHtml =
45
+ '<body>\n' +
46
+ ' <div>\n' +
47
+ ' <ul>\n' +
48
+ ' <li></li>\n' +
49
50
+ ' </ul>\n' +
51
+ ' </div>\n' +
52
+ '</body>'
53
54
+ const compiled = compileToFunctions(expectedHtml)
55
+ const wrapper = mountingMethod(compiled)
56
+ const options = { prettyPrint: true };
57
+ expect(wrapper.html(options)).to.equal(expectedHtml)
58
+ })
59
0 commit comments