fix and add some tests
This commit is contained in:
parent
8b40741e7a
commit
37a504cb43
5 changed files with 155 additions and 2 deletions
|
@ -37,7 +37,10 @@ func TestDiscover(t *testing.T) {
|
|||
op.Discover(tt.args.w, tt.args.config)
|
||||
rec := tt.args.w.(*httptest.ResponseRecorder)
|
||||
require.Equal(t, http.StatusOK, rec.Code)
|
||||
require.Equal(t, `{"issuer":"https://issuer.com","request_uri_parameter_supported":false}`, rec.Body.String())
|
||||
require.Equal(t,
|
||||
`{"issuer":"https://issuer.com","request_uri_parameter_supported":false}
|
||||
`,
|
||||
rec.Body.String())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue