Tests for parseCookie, serializeCookie, shuffle
This commit is contained in:
@ -5,9 +5,10 @@ test('Testing parseCookie', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof parseCookie === 'function', 'parseCookie is a Function');
|
||||
t.deepEqual(parseCookie('foo=bar; equation=E%3Dmc%5E2'), { foo: 'bar', equation: 'E=mc^2' }, 'Parses the cookie');
|
||||
//t.deepEqual(parseCookie(args..), 'Expected');
|
||||
//t.equal(parseCookie(args..), 'Expected');
|
||||
//t.false(parseCookie(args..), 'Expected');
|
||||
//t.throws(parseCookie(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user