[bug] Fix API URLs for GitHub Enterprise Server (#2626)

* Fix API URLs for GHES

Fix leading slashes causing API calls to fail when used with GitHub Enterprise.

* Fix tests

Fix tests that should have been updated in the previous commit.

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
This commit is contained in:
Martin Costello
2022-12-01 00:00:45 +00:00
committed by GitHub
parent 46b5077b16
commit 978093803c
9 changed files with 129 additions and 129 deletions
@@ -382,7 +382,7 @@ namespace Octokit.Tests.Reactive
client.GetReviewHistory("fake", "repo", 123);
connection.Connection.Received().Get<List<EnvironmentApprovals>>(Arg.Is<Uri>(u => u.ToString() == "/repos/fake/repo/actions/runs/123/approvals"),
connection.Connection.Received().Get<List<EnvironmentApprovals>>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/actions/runs/123/approvals"),
null);
}