Skip to content

Commit

Permalink
test: add test for TOTPIssuer
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent c4f05ba commit 14731c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions driver/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ func TestViperProvider(t *testing.T) {
}
})

t.Run("method=totp", func(t *testing.T) {
assert.Equal(t, "issuer.ory.sh", p.TOTPIssuer())
})

t.Run("method=login", func(t *testing.T) {
assert.Equal(t, time.Minute*99, p.SelfServiceFlowLoginRequestLifespan())

Expand Down

0 comments on commit 14731c4

Please sign in to comment.