diff options
author | 杨宇千 <crupest@outlook.com> | 2019-11-20 20:11:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 20:11:49 +0800 |
commit | 1bb9a2a622955e7c0a0b75e36fb1673cb9f3aca5 (patch) | |
tree | fb40d254bcec2946ce7c080089c76a342d3472b0 /Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs | |
parent | f2ca682f8d111112adc167dcf62011676c3ceb00 (diff) | |
parent | 1e86a5c6fbbd6aa05a0a5fcaadf8a9d7b1402eca (diff) | |
download | timeline-1bb9a2a622955e7c0a0b75e36fb1673cb9f3aca5.tar.gz timeline-1bb9a2a622955e7c0a0b75e36fb1673cb9f3aca5.tar.bz2 timeline-1bb9a2a622955e7c0a0b75e36fb1673cb9f3aca5.zip |
Merge pull request #55 from crupest/format
Fix some format problems.
Diffstat (limited to 'Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs')
-rw-r--r-- | Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs index 483499fb..c5d0addd 100644 --- a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs @@ -169,6 +169,12 @@ namespace Timeline.Tests.IntegratedTests { const string userUrl = "users/user/timeline/posts"; const string adminUrl = "users/admin/timeline/posts"; + { + using var client = await CreateClientAsUser(); + var res = await client.PostAsync("users/user/timeline/op/property", + new StringContent(@"{""visibility"":""abcdefg""}", System.Text.Encoding.UTF8, System.Net.Mime.MediaTypeNames.Application.Json)); + res.Should().BeInvalidModel(); + } { // default visibility is registered { using var client = await CreateClientWithNoAuth(); |