Skip to content

Commit

Permalink
chore: fix firefox failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed May 28, 2021
1 parent f9fed83 commit 037be39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/spec/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,11 @@ describe("html:", () => {
<div>content</div>
`({}, container);
return resolveTimeout(() => {
expect(getComputedStyle(container.children[0]).color).toBe(
"rgb(0, 0, 0)",
);
if (document.adoptedStyleSheets) {
expect(getComputedStyle(container.children[0]).color).toBe(
"rgb(0, 0, 0)",
);
}

expect(container.children.length).toBe(1);
});
Expand Down

0 comments on commit 037be39

Please sign in to comment.