blob: 854a20d50448bb62b48ddba12856cf7cf902f910 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package tasks
import (
"testing"
"github.com/stretchr/testify/assert"
"mokhan.ca/xlgmokha/idp/pkg/dto"
)
func TestCreateClient(t *testing.T) {
t.Run("with valid parameters", func(t *testing.T) {
request := dto.ClientRegistrationRequest{
ClientMetadata: dto.ClientMetadata{
ClientName: "jive",
RedirectUris: []string{"https://example.com/callback"},
},
}
response, err := CreateClient(request)
assert.Nil(t, err)
assert.NotNil(t, response)
})
}
|