diff --git a/test/unit/styling-scoped.html b/test/unit/styling-scoped.html
index d0f22c756f..b67de4ab27 100644
--- a/test/unit/styling-scoped.html
+++ b/test/unit/styling-scoped.html
@@ -1065,7 +1065,7 @@
// but in shadyDOM it has moved to the head and the selector has been altered.
if (style) {
assert.equal(style.textContent, `.double-shared-style {
-color: green;
+ color: green;
}`, 'There should be only one class selector in this style element');
} else {
assert.equal(document.head.querySelector('[scope="double-shared-styling-element"]').textContent,