Skip to content

Commit

Permalink
excercise private params
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed May 6, 2020
1 parent b533edc commit a980589
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jwt/openid/openid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,17 @@ func TestOpenIDClaims(t *testing.T) {
return assert.Equal(t, time.Unix(aLongLongTimeAgo, 0).UTC(), token.UpdatedAt())
},
},
{
Value: `dummy`,
Key: `dummy`,
Check: func(token openid.Token) bool {
v, ok := token.Get(`dummy`)
if !assert.True(t, ok, `token.Get should return valid value`) {
return false
}
return assert.Equal(t, `dummy`, v, `values should match`)
},
},
}

var data = map[string]interface{}{}
Expand Down

0 comments on commit a980589

Please sign in to comment.