Skip to content

Commit

Permalink
test: compare with specific errors (#2693)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Feb 8, 2024
1 parent fee245c commit 14e6a8f
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 14e6a8f

Please sign in to comment.