Skip to content

Commit

Permalink
test: add TestEnsureInternalContext
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent 47bd057 commit 152bfc7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions selfservice/flow/settings/flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,9 @@ func TestGetRequestURL(t *testing.T) {
f := &settings.Flow{RequestURL: expectedURL}
assert.Equal(t, expectedURL, f.GetRequestURL())
}

func TestEnsureInternalContext(t *testing.T) {
f := new(settings.Flow)
f.EnsureInternalContext()
assert.Equal(t, "{}", f.InternalContext)
}

0 comments on commit 152bfc7

Please sign in to comment.