Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package e2e |
||
2 | |||
3 | import ( |
||
4 | "context" |
||
5 | "net/http" |
||
6 | "testing" |
||
7 | |||
8 | "github.com/stretchr/testify/assert" |
||
9 | ) |
||
10 | |||
11 | func TestUsersService_Me(t *testing.T) { |
||
12 | // Setup |
||
13 | t.Parallel() |
||
14 | |||
15 | user, response, err := client.Users.Me(context.Background()) |
||
16 | |||
17 | assert.Nil(t, err) |
||
18 | assert.Equal(t, http.StatusOK, response.HTTPResponse.StatusCode) |
||
19 | assert.NotNil(t, user) |
||
20 | } |
||
21 |