Tests for parseCookie, serializeCookie, shuffle

This commit is contained in:
Angelos Chalaris
2018-02-03 12:32:46 +02:00
parent 5e16bcbcc8
commit 73fe3b95da
4 changed files with 13 additions and 6 deletions

View File

@ -5,9 +5,10 @@ test('Testing serializeCookie', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof serializeCookie === 'function', 'serializeCookie is a Function');
t.equal(serializeCookie('foo', 'bar'), 'foo=bar', 'Serializes the cookie');
//t.deepEqual(serializeCookie(args..), 'Expected');
//t.equal(serializeCookie(args..), 'Expected');
//t.false(serializeCookie(args..), 'Expected');
//t.throws(serializeCookie(args..), 'Expected');
t.end();
});
});