Skip to content

Commit

Permalink
add passing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreds committed Jul 2, 2024
1 parent 58e69c7 commit b6938fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/fusionauth/Client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@ var (

var faClient = NewClient(httpClient, baseURL, "af69486b-4733-4470-a592-f1bfce7af580")

func TestRetrieveUser(t *testing.T) {
func TestRetrieveUserFail(t *testing.T) {
userResponse, _, _ := faClient.RetrieveUser("[email protected]")
assert.Equal(t, 401, userResponse.StatusCode)
}

func TestRetrieveUserSuccess(t *testing.T) {
userResponse, _, _ := faClient.RetrieveUser("[email protected]")
assert.Equal(t, 200, userResponse.StatusCode)
}

func TestMain(m *testing.M) {
os.Exit(m.Run())
}

0 comments on commit b6938fd

Please sign in to comment.