Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/cookie/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ test('Cookie Name Validation', () => {
maxAge: 3
})
},
Error
new Error('Invalid cookie name')
)
})
})
Expand Down Expand Up @@ -116,7 +116,7 @@ test('Cookie Value Validation', () => {
}
)
},
Error,
new Error('Invalid header value'),
"RFC2616 cookie 'Space'"
)
})
Expand All @@ -128,7 +128,7 @@ test('Cookie Value Validation', () => {
value: 'United Kingdom'
})
},
Error,
new Error('Invalid header value'),
"RFC2616 cookie 'location' cannot contain character ' '"
)
})
Expand All @@ -147,7 +147,7 @@ test('Cookie Path Validation', () => {
maxAge: 3
})
},
Error,
new Error('Invalid cookie path'),
path + ": Invalid cookie path char ';'"
)
})
Expand All @@ -167,7 +167,7 @@ test('Cookie Domain Validation', () => {
maxAge: 3
})
},
Error,
new Error('Invalid cookie domain'),
'Invalid first/last char in cookie domain: ' + domain
)
})
Expand Down