Update test

This commit is contained in:
Robert Boyd III 2019-07-04 15:16:11 -04:00
parent 474b6f00c5
commit 32f63ab116
No known key found for this signature in database
GPG key ID: 55B95B9349D916DF

View file

@ -74,7 +74,7 @@ function test_parent() {
]
for (let [url, exp_parent] of cases) {
let parent = UrlUtil.getUrlParent(new URL(url))
let parent = UrlUtil.getUrlParent(new URL(url), true)
test(`parent of ${url} --> ${exp_parent}`, () =>
expect(parent ? parent.href : parent).toEqual(exp_parent))