mirror of
https://github.com/kataras/iris.git
synced 2025-03-13 22:36:24 +01:00
fmt
parent
c4bb771f6b
commit
174302e459
|
@ -115,8 +115,10 @@ func TestCookiesBasic(t *testing.T) {
|
|||
cookieName, cookieValue := "my_cookie_name", "my_cookie_value"
|
||||
|
||||
// Test Set A Cookie.
|
||||
t1 := e.GET(fmt.Sprintf("/cookies/%s/%s", cookieName, cookieValue)).Expect().Status(httptest.StatusOK)
|
||||
t1.Cookie(cookieName).Value().Equal(cookieValue) // validate cookie's existence, it should be there now.
|
||||
t1 := e.GET(fmt.Sprintf("/cookies/%s/%s", cookieName, cookieValue)).
|
||||
Expect().Status(httptest.StatusOK)
|
||||
// Validate cookie's existence, it should be available now.
|
||||
t1.Cookie(cookieName).Value().Equal(cookieValue)
|
||||
t1.Body().Contains(cookieValue)
|
||||
|
||||
path := fmt.Sprintf("/cookies/%s", cookieName)
|
||||
|
|
Loading…
Reference in New Issue
Block a user