diff options
author | crupest <crupest@outlook.com> | 2020-11-22 09:53:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 09:53:31 +0800 |
commit | b3c9cf4bf66bd3b78e94dc522c53e7f7522897f0 (patch) | |
tree | 996eed1f087a50e8d5cd865e1440f4dbb8a7873b /BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs | |
parent | e0785b385138057a23ffd1703a7265c371aef45d (diff) | |
parent | f1aabc06f1005b26bd1c0c5f36c98c28a62fc31e (diff) | |
download | timeline-b3c9cf4bf66bd3b78e94dc522c53e7f7522897f0.tar.gz timeline-b3c9cf4bf66bd3b78e94dc522c53e7f7522897f0.tar.bz2 timeline-b3c9cf4bf66bd3b78e94dc522c53e7f7522897f0.zip |
Merge pull request #189 from crupest/admin
Refactor front end to use the new permission system. Enhance admin page.
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs index 55a37198..e0ebf635 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs @@ -29,7 +29,11 @@ namespace Timeline.Tests.IntegratedTests public async Task Get()
{
using var client = await CreateDefaultClient();
- await client.TestGetAsync<UserInfo>($"users/admin");
+ var user = await client.TestGetAsync<UserInfo>($"users/admin");
+ user.Username.Should().Be("admin");
+ user.Nickname.Should().Be("administrator");
+ user.UniqueId.Should().NotBeNullOrEmpty();
+ user.Permissions.Should().NotBeNull();
}
[Fact]
|