File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ func TestMergeClaimsAndPassedAccessTokenPayload(t *testing.T) {
223223 assert .Equal (t , 1 , len (payloadParam ))
224224
225225 accessTokenPayload := sessionContainer .GetAccessTokenPayload ()
226+ assert .Equal (t , 5 , len (accessTokenPayload ))
226227
227228 // We have the prop from the payload param
228229 assert .Equal (t , true , accessTokenPayload ["initial" ])
@@ -235,6 +236,5 @@ func TestMergeClaimsAndPassedAccessTokenPayload(t *testing.T) {
235236 // We have the custom claim
236237 // The resulting payload is different from the input: it doesn't container nil values
237238 assert .Equal (t , "asdf" , accessTokenPayload ["user-custom" ])
238- assert .Equal (t , "asdf" , accessTokenPayload ["user-custom2" ].(map [string ]interface {})["inner" ])
239- assert .Nil (t , accessTokenPayload ["user-custom2" ].(map [string ]interface {})["nilProp" ])
239+ assert .Equal (t , custom2 , accessTokenPayload ["user-custom2" ])
240240}
You can’t perform that action at this time.
0 commit comments