aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs')
-rw-r--r--Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs
index f3d6b172..81446fd8 100644
--- a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs
+++ b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs
@@ -119,19 +119,22 @@ namespace Timeline.Tests.IntegratedTests
{
var res = await client.PatchAsJsonAsync("users/user1/timeline",
new TimelinePatchRequest { Description = mockDescription });
- res.Should().HaveStatusCode(200);
+ res.Should().HaveStatusCode(200)
+ .And.HaveJsonBody<BaseTimelineInfo>().Which.Description.Should().Be(mockDescription);
await AssertDescription(mockDescription);
}
{
var res = await client.PatchAsJsonAsync("users/user1/timeline",
new TimelinePatchRequest { Description = null });
- res.Should().HaveStatusCode(200);
+ res.Should().HaveStatusCode(200)
+ .And.HaveJsonBody<BaseTimelineInfo>().Which.Description.Should().Be(mockDescription);
await AssertDescription(mockDescription);
}
{
var res = await client.PatchAsJsonAsync("users/user1/timeline",
new TimelinePatchRequest { Description = "" });
- res.Should().HaveStatusCode(200);
+ res.Should().HaveStatusCode(200)
+ .And.HaveJsonBody<BaseTimelineInfo>().Which.Description.Should().Be("");
await AssertDescription("");
}
}