mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
Fix endpoint URLs for Enterprise support
Since Enterprise base URLs end with /api/v3 we need to make sure the endpoints are relative and not absolute.
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Octokit.Tests.Clients
|
||||
[Fact]
|
||||
public void RequestsCorrectUrl()
|
||||
{
|
||||
var endpoint = new Uri("/notifications", UriKind.Relative);
|
||||
var endpoint = new Uri("notifications", UriKind.Relative);
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new NotificationsClient(connection);
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Octokit.Tests.Clients
|
||||
[Fact]
|
||||
public void RequestsCorrectUrl()
|
||||
{
|
||||
var endpoint = new Uri("/repos/banana/split/notifications", UriKind.Relative);
|
||||
var endpoint = new Uri("repos/banana/split/notifications", UriKind.Relative);
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new NotificationsClient(connection);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user