mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-01 15:50:08 -08:00
14 lines
355 B
JavaScript
14 lines
355 B
JavaScript
import {Utils} from '@/js/Utils.ts';
|
|
|
|
describe('Utils.ts', () => {
|
|
beforeEach(() => {
|
|
//delete window.location;
|
|
window.location = {href: {}, search: ''};
|
|
});
|
|
|
|
it('correctly parse a location parameter', () => {
|
|
window.location.search = '?survey=DSS';
|
|
expect(Utils.urlParam('survey')).toEqual('DSS');
|
|
});
|
|
});
|