Skip to content

Commit

Permalink
Fix Content-Type in FileList fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jan 16, 2024
1 parent 7779346 commit d98418f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -33,7 +33,7 @@ public async Task should_parse_recent_feed_from_FileList()

Mocker.GetMock<IHttpClient>()
.Setup(o => o.ExecuteAsync(It.Is<HttpRequest>(v => v.Method == HttpMethod.Get)))
.Returns<HttpRequest>(r => Task.FromResult(new HttpResponse(r, new HttpHeader(), recentFeed)));
.Returns<HttpRequest>(r => Task.FromResult(new HttpResponse(r, new HttpHeader { { "Content-Type", "application/json" } }, recentFeed)));

var releases = await Subject.FetchRecent();

Expand Down

0 comments on commit d98418f

Please sign in to comment.