Skip to content

Commit 4101c14

Browse files
committed
fix: fixed tests
1 parent f44753f commit 4101c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipe/session/createNewSession_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)