diff --git a/test/fixtures/entities2.html b/test/fixtures/entities2.html new file mode 100644 index 0000000..a2e7018 --- /dev/null +++ b/test/fixtures/entities2.html @@ -0,0 +1,14 @@ + + + + + asd + + + + + + + + + diff --git a/test/index.js b/test/index.js index ddc9cac..b6a4113 100644 --- a/test/index.js +++ b/test/index.js @@ -95,4 +95,12 @@ describe('inline-critical', function() { expect(strip2(out.toString('utf-8'))).to.be.equal(strip2(expected)); done(); }); + + it.skip('should keep self closing svg elements', function(done) { + var html = read('test/fixtures/entities2.html'); + var out = inlineCritical(html, ''); + + expect(strip(out.toString('utf-8'))).to.be.equal(strip(html)); + done(); + }); });