Skip to content

Commit 82030ea

Browse files
committed
More robust test case
1 parent 6569451 commit 82030ea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/issue-154/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import "./style.css";
22

33
window.addEventListener("load", () => {
4-
console.log(
5-
getComputedStyle(document.body).background.match(/rgb\(255, 0, 0\)/)
6-
? "ok"
7-
: "error"
4+
const { integrity } = document.querySelector("link");
5+
const loaded = getComputedStyle(document.body).background.match(
6+
/rgb\(255, 0, 0\)/
87
);
8+
9+
console.log(integrity && loaded ? "ok" : "error");
910
});

0 commit comments

Comments
 (0)