Skip to content

Commit 9aac1c8

Browse files
Test for returning all cookies as an object
1 parent 3e07441 commit 9aac1c8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎test.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ asyncTest('malformed cookie value in IE (#88, #117)', function() {
110110
document.body.appendChild(iframe);
111111
});
112112

113+
test('should return all cookies', function() {
114+
document.cookie = 'c=v';
115+
document.cookie = 'foo=bar';
116+
deepEqual($.cookie(), {
117+
c: 'v',
118+
foo: 'bar'
119+
}, 'should return all cookies');
120+
});
121+
113122

114123
module('write', before);
115124

0 commit comments

Comments
 (0)