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 | d5ef961861304f6bf5f4e3dd8119a81f12c0754a (patch) | |
tree | fb40d254bcec2946ce7c080089c76a342d3472b0 /Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs | |
parent | ae0fe2a03e04a6d170ac5f05039afe2a9407f255 (diff) | |
parent | c74d95b029caaf4f69977179823ebefb6f88029a (diff) | |
download | timeline-d5ef961861304f6bf5f4e3dd8119a81f12c0754a.tar.gz timeline-d5ef961861304f6bf5f4e3dd8119a81f12c0754a.tar.bz2 timeline-d5ef961861304f6bf5f4e3dd8119a81f12c0754a.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(); |