Skip to content

Commit

Permalink
Add test for resolveUrl('//')
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed May 2, 2019
1 parent d0ea20a commit 5537380
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/resolveurl.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@
assert.equal(actual, expected);
});

test('resolveUrl when called with //', function () {
const el = document.querySelector('x-resolve');
const expected = '//';
const actual =
el.resolveUrl('//', 'https://example.org/bar');
assert.equal(actual, expected);
});

test('resolveUrl api with assetpath', function() {
var el = document.createElement('p-r-ap');
// Manually calculate expected URL, to avoid dependence on
Expand Down

0 comments on commit 5537380

Please sign in to comment.