Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enkodr committed Mar 30, 2023
1 parent 230c804 commit 3917413
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,4 @@ func TestNewGitHubApp(t *testing.T) {
if err == nil {
t.Errorf("Expected error for missing Private Key")
}

// Test Case 5: Valid configuration
cfg = &GitHubAppConfig{
ApplicationID: "298674",
InstallationID: "123",
LocalPath: "/path/to/repo",
PrivateKey: testPrivateKey,
}
ghApp, err := NewGitHubApp(cfg)
if err != nil {
t.Errorf("Unexpected error: %v", err)
}
if ghApp.Config.ApplicationID != "298674" || ghApp.Config.InstallationID != "123" || ghApp.Config.LocalPath != "/path/to/repo" {
t.Errorf("Incorrect configuration values: %v", ghApp.Config)
}
}

0 comments on commit 3917413

Please sign in to comment.