Skip to content

Commit

Permalink
Add test for own property
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Oct 3, 2024
1 parent e9e2379 commit d5be008
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ describe('cookie.parse(str)', function () {
assert.deepEqual(cookie.parse('foo=false;bar=bar;foo=true'), { foo: 'false', bar: 'bar' })
assert.deepEqual(cookie.parse('foo=;bar=bar;foo=boo'), { foo: '', bar: 'bar' })
})

it('should parse native properties', function () {
assert.deepEqual(cookie.parse('toString=foo;valueOf=bar'), { toString: 'foo', valueOf: 'bar' })
})
})

describe('cookie.parse(str, options)', function () {
Expand Down

0 comments on commit d5be008

Please sign in to comment.