mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 20:30:41 +00:00
Fix failing unit test
This commit is contained in:
@@ -252,11 +252,13 @@ namespace Octokit.Tests.Clients
|
||||
var client = Substitute.For<IApiConnection>();
|
||||
var authEndpoint = new AuthorizationsClient(client);
|
||||
|
||||
var result = await authEndpoint.CheckApplicationAuthentication("clientId", "accessToken");
|
||||
authEndpoint.CheckApplicationAuthentication("clientId", "accessToken");
|
||||
|
||||
client.Received().Get<ApplicationAuthorization>(
|
||||
Arg.Is<Uri>(u => u.ToString() == "applications/clientId/tokens/accessToken"));
|
||||
}
|
||||
Arg.Is<Uri>(u => u.ToString() == "applications/clientId/tokens/accessToken"),
|
||||
null,
|
||||
Arg.Any<string>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task EnsuresArgumentsNotNull()
|
||||
|
||||
@@ -192,7 +192,9 @@ namespace Octokit
|
||||
|
||||
var endpoint = ApiUrls.ApplicationAuthorization(clientId, accessToken);
|
||||
return await ApiConnection.Get<ApplicationAuthorization>(
|
||||
endpoint);
|
||||
endpoint,
|
||||
null,
|
||||
previewAcceptsHeader);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user