Skip to content

Commit

Permalink
tests: add additional parse test
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Mar 30, 2022
1 parent f364585 commit e5de9f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('cookie.parse(str)', function () {

it('should ignore cookies without value', function () {
assert.deepEqual(cookie.parse('foo=bar;fizz ; buzz'), { foo: 'bar' })
assert.deepEqual(cookie.parse(' fizz; foo= bar'), { foo: 'bar' })
})

it('should ignore duplicate cookies', function () {
Expand Down

0 comments on commit e5de9f6

Please sign in to comment.