mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
* Use authorize page if auth provider * Add webcomponent polyfill * More fixes * ES5 fix * Lint * Use redirect_uri * upgrade uglify to fix tests? * Update browsers used for testing
19 lines
490 B
JavaScript
19 lines
490 B
JavaScript
import { assert } from 'chai';
|
|
|
|
import parseQuery from '../../../js/common/util/parse_query.js';
|
|
|
|
describe('parseQuery', () => {
|
|
it('works', () => {
|
|
assert.deepEqual(parseQuery('hello=world'), { hello: 'world' });
|
|
assert.deepEqual(parseQuery('hello=world&drink=soda'), {
|
|
hello: 'world',
|
|
drink: 'soda',
|
|
});
|
|
assert.deepEqual(parseQuery('hello=world&no_value&drink=soda'), {
|
|
hello: 'world',
|
|
no_value: undefined,
|
|
drink: 'soda',
|
|
});
|
|
});
|
|
});
|