@@ -34,7 +34,7 @@ func TestLogin(t *testing.T) {
3434 SetHeader ("Content-Type" , "application/json" ).
3535 BodyString (data ).
3636 Expect (t ).
37- // AssertFunc(dumpResponse).
37+ // AssertFunc(dumpResponse(t) ).
3838 Type ("json" ).
3939 Status (200 ).
4040 JSONSchema ("../test/artifacts/api/jwt_token_with_refresh_scheme.json" ).
@@ -60,7 +60,7 @@ func TestLoginWithNoRefresh(t *testing.T) {
6060 SetHeader ("Content-Type" , "application/json" ).
6161 BodyString (data ).
6262 Expect (t ).
63- // AssertFunc(dumpResponse).
63+ // AssertFunc(dumpResponse(t) ).
6464 AssertFunc (validateJSON (func (data map [string ]interface {}) error {
6565 g .Expect (data ).To (MatchKeys (IgnoreExtras | IgnoreMissing , Keys {
6666 "access_token" : Not (BeZero ()),
@@ -81,7 +81,7 @@ func TestLoginWithWrongAppID(t *testing.T) {
8181 request .Post ("/auth/login" ).
8282 SetHeader ("X-Identifo-ClientID" , "wrong_app_ID" ).
8383 Expect (t ).
84- AssertFunc (dumpResponse ).
84+ AssertFunc (dumpResponse ( t ) ).
8585 AssertFunc (validateJSON (func (data map [string ]interface {}) error {
8686 g .Expect (data ["error" ]).To (MatchAllKeys (Keys {
8787 "id" : Equal (string (l .ErrorStorageAPPFindByIDError )),
@@ -115,7 +115,7 @@ func TestLoginWithWrongSignature(t *testing.T) {
115115 SetHeader ("Content-Type" , "application/json" ).
116116 BodyString (data ).
117117 Expect (t ).
118- AssertFunc (dumpResponse ).
118+ AssertFunc (dumpResponse ( t ) ).
119119 Status (400 ).
120120 AssertFunc (validateJSON (func (data map [string ]interface {}) error {
121121 g .Expect (data ["error" ]).To (MatchAllKeys (Keys {
@@ -145,7 +145,7 @@ func TestLoginTokenClaims(t *testing.T) {
145145 SetHeader ("Content-Type" , "application/json" ).
146146 BodyString (data ).
147147 Expect (t ).
148- // AssertFunc(dumpResponse).
148+ // AssertFunc(dumpResponse(t) ).
149149 Type ("json" ).
150150 AssertFunc (validateJSON (func (data map [string ]interface {}) error {
151151 tokenStr = data ["access_token" ].(string )
0 commit comments