simple-cookie
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -69,3 +69,3 @@ function printExpires(expires){ | ||
tokenize: function( array ){ | ||
return array.map(function(s){ return s.name+'='+encodeURIComponent(s.value); }).join('; '); | ||
return array.map(function(s){ return s.name+'='+s.value; }).join('; '); | ||
} | ||
@@ -72,0 +72,0 @@ }; |
{ | ||
"name": "simple-cookie", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Simple cookie parser & serializer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -59,2 +59,21 @@ | ||
describe('#parseString2',function(){ | ||
it('should return the right object from cookie string',function(){ | ||
var theCookie = 'cnameSecure=cval1sec=9; expires='+date+ | ||
'; domain=.example.com; path=/; secure'; | ||
var h = cookie.parse( theCookie, 'example.com', '/is/cool' ); | ||
h.name.should.equal( 'cnameSecure' ); | ||
h.value.should.equal( 'cval1sec=9' ); | ||
h.expires.should.be.a( 'date' ); | ||
h.expires.toGMTString().should.equal( date ); | ||
h.secure.should.equal( true ); | ||
h.httponly.should.equal( false ); | ||
h.path.should.equal( '/' ); | ||
h.domain.should.equal( '.example.com' ); | ||
}); | ||
}); | ||
describe('#tokeninze',function(){ | ||
@@ -61,0 +80,0 @@ it('should return tokenized cookies ready to send', function(){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8309
146