Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhurst committed Sep 25, 2023
1 parent 143e56a commit 3998e3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Octokit.Tests/Reactive/ObservableStarredClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void RequestsCorrectUrlWithTimestamps()

client.GetAllStargazersWithTimestamps("fight", "club");

connection.Received().Get<List<UserStar>>(endpoint, Args.EmptyDictionary);
connection.Received().Get<List<UserStar>>(endpoint, Args.EmptyDictionary, AcceptHeaders.StarJson);
}

[Fact]
Expand All @@ -116,7 +116,7 @@ public void RequestsCorrectUrlWithTimestampsWithRepositoryId()

client.GetAllStargazersWithTimestamps(1);

connection.Received().Get<List<UserStar>>(endpoint, Args.EmptyDictionary);
connection.Received().Get<List<UserStar>>(endpoint, Args.EmptyDictionary, AcceptHeaders.StarJson);
}

[Fact]
Expand All @@ -137,7 +137,7 @@ public void RequestsCorrectUrlWithTimestampsWithApiOptions()

client.GetAllStargazersWithTimestamps("fight", "club", options);

connection.Received().Get<List<UserStar>>(endpoint, Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
connection.Received().Get<List<UserStar>>(endpoint, Arg.Is<IDictionary<string, string>>(d => d.Count == 2), AcceptHeaders.StarJson);
}

[Fact]
Expand All @@ -158,7 +158,7 @@ public void RequestsCorrectUrlWithTimestampsWithApiOptionsWithRepositoryId()

client.GetAllStargazersWithTimestamps(1, options);

connection.Received().Get<List<UserStar>>(endpoint, Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
connection.Received().Get<List<UserStar>>(endpoint, Arg.Is<IDictionary<string, string>>(d => d.Count == 2), AcceptHeaders.StarJson);
}

[Fact]
Expand Down

0 comments on commit 3998e3a

Please sign in to comment.