We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5647ddb commit 4e06006Copy full SHA for 4e06006
exercises/02-Separate-Stylesheet/tests.js
@@ -58,7 +58,7 @@ describe("All the styles should be applied", function () {
58
let meta = head.querySelector("meta")
59
expect(meta).toBe(null)
60
61
- let link = document.querySelector('link').href
62
- expect(link).toBe('http://localhost/styles.css')
+ const pathname = new URL(document.querySelector('link').href).pathname
+ expect(pathname).toBe('/styles.css')
63
})
64
});
0 commit comments