From 174302e459ff89060ee88b3f3ee76dde6f60eff3 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sun, 21 Jul 2019 00:28:24 +0300 Subject: [PATCH] fmt --- Testing.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Testing.md b/Testing.md index f3478b3..a7075e8 100644 --- a/Testing.md +++ b/Testing.md @@ -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)