systemjs/test/browser/base-href.js
Lars den Bakker 17ae8b7822 Take base href into account when creating baseUrl (#1957)
* Take base href into account when creating baseUrl

* Add a test for base href logic
2019-06-29 11:35:32 -04:00

11 lines
397 B
JavaScript

suite('Base href', () => {
test(`should should resolve relative to base href`, async () => {
const m = await System.import('./base-href-relative.js');
assert.equal(m.default, 'base href relative');
});
test('should resolve import map relative to base href', async () => {
const m = await System.import('base-href-bare');
assert.equal(m.default, 'base href bare');
});
});