Test cleanup and fixes [g-h]
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const getURLParameters = require('./getURLParameters.js');
|
||||
|
||||
|
||||
test('getURLParameters is a Function', () => {
|
||||
test('getURLParameters is a Function', () => {
|
||||
expect(getURLParameters).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(getURLParameters('http:
|
||||
|
||||
test('Returns an object containing the parameters of the current URL', () => {
|
||||
expect(getURLParameters(getURLParameters('http://url.com/page?name=Adam&surname=Smith')).toEqual({name: 'Adam', surname: 'Smith'});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user