We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1deba commit e4c7383Copy full SHA for e4c7383
spec/content.spec.js
@@ -58,6 +58,12 @@ describe('Content', function () {
58
content.normalizeTags(actual)
59
expect(actual.innerHTML).to.equal(expected.innerHTML)
60
})
61
+
62
+ it('removes whitespaces at the start and end', function () {
63
+ const elem = createElement('<div> Hello <strong>world</strong> </div>')
64
+ content.normalizeTags(elem)
65
+ expect(elem.innerHTML).to.equal('Hello <strong>world</strong>')
66
+ })
67
68
69
describe('normalizeWhitespace()', function () {
0 commit comments