Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/cookie.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ describe('cookie', function() {
// Just to make sure that
// URIError is never thrown here.
document.cookie = 'bad=%';

// enable debugging for cookie package so we can better
// observe flaky tests on IE/Edge.
window.localStorage.setItem('debug', 'cookie');
});

afterEach(function() {
Expand All @@ -34,7 +38,10 @@ describe('cookie', function() {

describe('#set', function() {
it('should set a cookie', function() {
// Logging so we can better observe flaky tests on IE/Edge.
console.log('setting cookie. document.cookie is', document.cookie);
cookie.set('x', { a: 'b' });
console.log('cookie set. document.cookie is', document.cookie);
assert.deepEqual(cookie.get('x'), { a: 'b' });
});
});
Expand Down