Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix service name
  • Loading branch information
WillAbides committed Oct 7, 2023
commit 118ec2ff14ba04b7603a58d460fa8ec5ae5da9e1
12 changes: 6 additions & 6 deletions github/meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestMetaService_Get(t *testing.T) {
})

ctx := context.Background()
meta, _, err := client.MetaService.Get(ctx)
meta, _, err := client.Meta.Get(ctx)
if err != nil {
t.Errorf("Get returned error: %v", err)
}
Expand All @@ -80,7 +80,7 @@ func TestMetaService_Get(t *testing.T) {

const methodName = "Get"
testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
got, resp, err := client.MetaService.Get(ctx)
got, resp, err := client.Meta.Get(ctx)
if got != nil {
t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got)
}
Expand All @@ -103,7 +103,7 @@ func TestMetaService_Octocat(t *testing.T) {
})

ctx := context.Background()
got, _, err := client.MetaService.Octocat(ctx, input)
got, _, err := client.Meta.Octocat(ctx, input)
if err != nil {
t.Errorf("Octocat returned error: %v", err)
}
Expand All @@ -114,7 +114,7 @@ func TestMetaService_Octocat(t *testing.T) {

const methodName = "Octocat"
testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
got, resp, err := client.MetaService.Octocat(ctx, input)
got, resp, err := client.Meta.Octocat(ctx, input)
if got != "" {
t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got)
}
Expand All @@ -135,7 +135,7 @@ func TestMetaService_Zen(t *testing.T) {
})

ctx := context.Background()
got, _, err := client.MetaService.Zen(ctx)
got, _, err := client.Meta.Zen(ctx)
if err != nil {
t.Errorf("Zen returned error: %v", err)
}
Expand All @@ -146,7 +146,7 @@ func TestMetaService_Zen(t *testing.T) {

const methodName = "Zen"
testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
got, resp, err := client.MetaService.Zen(ctx)
got, resp, err := client.Meta.Zen(ctx)
if got != "" {
t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got)
}
Expand Down