Test cleanup and fixes [a-b]
This commit is contained in:
@ -5,6 +5,8 @@ const parseCookie = require('./parseCookie.js');
|
||||
test('parseCookie is a Function', () => {
|
||||
expect(parseCookie).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(parseCookie('foo=bar; equation=E%3Dmc%5E2'), { foo: 'bar', equation: 'E=mc^2' }, 'Parses the cookie');
|
||||
test('Parses the cookie', () => {
|
||||
expect(parseCookie('foo=bar; equation=E%3Dmc%5E2'), { foo: 'bar', equation: 'E=mc^2' }).toEqual()
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user