Skip to content

Commit 31c40dc

Browse files
committed
Remove invalid cookie differently
For some reason, when running the test suite w/ BrowserStack, this invalid cookie wasn't deleted and thus broke all subsequent tests...
1 parent b52f564 commit 31c40dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ QUnit.test('Call to read cookie when there is another unrelated cookie with malf
117117
document.cookie = 'c=v';
118118
assert.strictEqual(Cookies.get('c'), 'v', 'should not throw a URI malformed exception when retrieving a single cookie');
119119
assert.deepEqual(Cookies.get(), { c: 'v' }, 'should not throw a URI malformed exception when retrieving all cookies');
120-
Cookies.withConverter(unescape).remove('invalid');
120+
document.cookie = 'invalid=foo; expires=Thu, 01 Jan 1970 00:00:00 GMT';
121121
});
122122

123123
// github.com/js-cookie/js-cookie/issues/145

0 commit comments

Comments
 (0)