Skip to content

Commit 4e06006

Browse files
Test of the second exercise improved
1 parent 5647ddb commit 4e06006

File tree

1 file changed

+2
-2
lines changed
  • exercises/02-Separate-Stylesheet

1 file changed

+2
-2
lines changed

exercises/02-Separate-Stylesheet/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe("All the styles should be applied", function () {
5858
let meta = head.querySelector("meta")
5959
expect(meta).toBe(null)
6060

61-
let link = document.querySelector('link').href
62-
expect(link).toBe('http://localhost/styles.css')
61+
const pathname = new URL(document.querySelector('link').href).pathname
62+
expect(pathname).toBe('/styles.css')
6363
})
6464
});

0 commit comments

Comments
 (0)