@@ -117,7 +117,7 @@ describe('server', function () {
117117 expect ( err ) . to . be ( null ) ;
118118 // hack-obtain sid
119119 var sid = res . text . match ( / " s i d " : " ( [ ^ " ] + ) " / ) [ 1 ] ;
120- expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/; HttpOnly' ) ;
120+ expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/; HttpOnly; SameSite=Strict ' ) ;
121121 done ( ) ;
122122 } ) ;
123123 } ) ;
@@ -130,7 +130,7 @@ describe('server', function () {
130130 . end ( function ( err , res ) {
131131 expect ( err ) . to . be ( null ) ;
132132 var sid = res . text . match ( / " s i d " : " ( [ ^ " ] + ) " / ) [ 1 ] ;
133- expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'woot=' + sid + '; Path=/; HttpOnly' ) ;
133+ expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'woot=' + sid + '; Path=/; HttpOnly; SameSite=Strict ' ) ;
134134 done ( ) ;
135135 } ) ;
136136 } ) ;
@@ -143,7 +143,7 @@ describe('server', function () {
143143 . end ( function ( err , res ) {
144144 expect ( err ) . to . be ( null ) ;
145145 var sid = res . text . match ( / " s i d " : " ( [ ^ " ] + ) " / ) [ 1 ] ;
146- expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/custom; HttpOnly' ) ;
146+ expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/custom; HttpOnly; SameSite=Strict ' ) ;
147147 done ( ) ;
148148 } ) ;
149149 } ) ;
@@ -156,7 +156,7 @@ describe('server', function () {
156156 . end ( function ( err , res ) {
157157 expect ( err ) . to . be ( null ) ;
158158 var sid = res . text . match ( / " s i d " : " ( [ ^ " ] + ) " / ) [ 1 ] ;
159- expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid ) ;
159+ expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; SameSite=Strict' ) ;
160160 done ( ) ;
161161 } ) ;
162162 } ) ;
@@ -169,7 +169,7 @@ describe('server', function () {
169169 . end ( function ( err , res ) {
170170 expect ( err ) . to . be ( null ) ;
171171 var sid = res . text . match ( / " s i d " : " ( [ ^ " ] + ) " / ) [ 1 ] ;
172- expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/; HttpOnly' ) ;
172+ expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/; HttpOnly; SameSite=Strict ' ) ;
173173 done ( ) ;
174174 } ) ;
175175 } ) ;
@@ -182,7 +182,7 @@ describe('server', function () {
182182 . end ( function ( err , res ) {
183183 expect ( err ) . to . be ( null ) ;
184184 var sid = res . text . match ( / " s i d " : " ( [ ^ " ] + ) " / ) [ 1 ] ;
185- expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid ) ;
185+ expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; SameSite=Strict' ) ;
186186 done ( ) ;
187187 } ) ;
188188 } ) ;
@@ -195,7 +195,7 @@ describe('server', function () {
195195 . end ( function ( err , res ) {
196196 expect ( err ) . to . be ( null ) ;
197197 var sid = res . text . match ( / " s i d " : " ( [ ^ " ] + ) " / ) [ 1 ] ;
198- expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/' ) ;
198+ expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/; SameSite=Strict ' ) ;
199199 done ( ) ;
200200 } ) ;
201201 } ) ;
@@ -208,7 +208,7 @@ describe('server', function () {
208208 . end ( function ( err , res ) {
209209 expect ( err ) . to . be ( null ) ;
210210 var sid = res . text . match ( / " s i d " : " ( [ ^ " ] + ) " / ) [ 1 ] ;
211- expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/; HttpOnly' ) ;
211+ expect ( res . headers [ 'set-cookie' ] [ 0 ] ) . to . be ( 'io=' + sid + '; Path=/; HttpOnly; SameSite=Strict ' ) ;
212212 done ( ) ;
213213 } ) ;
214214 } ) ;
0 commit comments