Skip to content

Commit d4318a9

Browse files
Add test for retrieving all cookies using converters
1 parent 6b66ed4 commit d4318a9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎test/tests.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ test('should be able to conditionally decode a single malformed cookie', functio
230230
document.cookie = 'encoded=%E4%BA%AC';
231231
strictEqual(cookies.get('encoded'), '京', 'should use the default encoding for the rest');
232232

233+
deepEqual(cookies.get(), {
234+
escaped: '北',
235+
encoded: '京'
236+
}, 'should retrieve everything');
237+
233238
Object.keys(cookies.get()).forEach(cookies.remove);
234239
strictEqual(document.cookie, '', 'should remove everything');
235240
});

0 commit comments

Comments
 (0)