Skip to content

Commit

Permalink
don't rely on specific hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
William Bernting (whf962) committed Sep 2, 2020
1 parent 0dfe2ed commit 79fd43f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ describe('web components', () => {
assert.match(
document.querySelector('x-thing').shadowRoot.innerHTML,
new RegExp(
`<span>Hello world!</span><link rel="stylesheet" href="blob:http://localhost:9023/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}">`
`<span>Hello world!</span><link rel="stylesheet" href="blob:http://.*?/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}">`
)
);

Expand Down Expand Up @@ -336,7 +336,7 @@ describe('web components', () => {
assert.match(
document.querySelector('x-thing').shadowRoot.innerHTML,
new RegExp(
`<span>Hello world!</span><link rel="preload" as="style" href="blob:http://localhost:9023/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}">`
`<span>Hello world!</span><link rel="preload" as="style" href="blob:http://.*?/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}">`
)
);

Expand Down

0 comments on commit 79fd43f

Please sign in to comment.