Skip to content

Commit 43b2f4f

Browse files
KaiPrincethescientist13
authored andcommitted
Add comment
1 parent bff4483 commit 43b2f4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/cases/html-web-components/html-web-components.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ describe('Run WCC For ', function() {
3535
actualHtml = html;
3636
dom = new JSDOM(actualHtml);
3737
pictureFrame = dom.window.document.querySelectorAll('wcc-picture-frame');
38+
39+
// We want to compare using canonical html (i.e. strip self-closing tags)
3840
const rawExpectedHtml = await fs.readFile(new URL('./expected.html', import.meta.url), 'utf-8');
3941
expectedHtml = serialize(parseFragment(rawExpectedHtml));
4042
});

0 commit comments

Comments
 (0)