File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ test('cookie in text response', async (t) => {
45
45
uri : '/textResponse' ,
46
46
} )
47
47
const response = await server . process ( test_request )
48
- t . is ( response . headerValue ( 'set-cookie' ) , 'foo=bar' )
48
+ t . is ( response . headers . get ( 'set-cookie' ) , 'foo=bar' )
49
49
} )
50
50
51
51
test ( 'cookie in json response' , async ( t ) => {
@@ -54,7 +54,7 @@ test('cookie in json response', async (t) => {
54
54
uri : '/jsonResponse' ,
55
55
} )
56
56
const response = await server . process ( test_request )
57
- t . is ( response . headerValue ( 'set-cookie' ) , 'foo=bar' )
57
+ t . is ( response . headers . get ( 'set-cookie' ) , 'foo=bar' )
58
58
} )
59
59
60
60
test ( 'cookie in file response' , async ( t ) => {
@@ -63,5 +63,5 @@ test('cookie in file response', async (t) => {
63
63
uri : '/fileResponse' ,
64
64
} )
65
65
const response = await server . process ( test_request )
66
- t . is ( response . headerValue ( 'set-cookie' ) , 'foo=bar' )
66
+ t . is ( response . headers . get ( 'set-cookie' ) , 'foo=bar' )
67
67
} )
You can’t perform that action at this time.
0 commit comments