aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-07 20:45:24 +0800
committercrupest <crupest@outlook.com>2022-04-07 20:45:24 +0800
commitf8eecd3d50dec23d23b2fa1b6223b9c99d974214 (patch)
tree38a1518a58ed571b0ecfecc1b65de1fb1c1ec6c0 /BackEnd/Timeline.Tests
parent97a2b834e5b2da14a54d12a9bef423a8607f0e94 (diff)
downloadtimeline-f8eecd3d50dec23d23b2fa1b6223b9c99d974214.tar.gz
timeline-f8eecd3d50dec23d23b2fa1b6223b9c99d974214.tar.bz2
timeline-f8eecd3d50dec23d23b2fa1b6223b9c99d974214.zip
...
Diffstat (limited to 'BackEnd/Timeline.Tests')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs1
-rw-r--r--BackEnd/Timeline.Tests/Services/SearchServiceTest.cs6
2 files changed, 3 insertions, 4 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs
index d7832b60..72553248 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs
@@ -383,7 +383,6 @@ namespace Timeline.Tests.IntegratedTests
using (var client = await CreateClientAsUser())
{
await client.TestPatchAssertInvalidModelAsync("timelines/t1", new HttpTimelinePatchRequest { Name = "!!!" });
- await client.TestPatchAssertErrorAsync("timelines/t1", new HttpTimelinePatchRequest { Name = "t2" }, errorCode: ErrorCodes.Conflict.Timeline);
await client.TestPatchAsync("timelines/t1", new HttpTimelinePatchRequest { Name = "newt" });
diff --git a/BackEnd/Timeline.Tests/Services/SearchServiceTest.cs b/BackEnd/Timeline.Tests/Services/SearchServiceTest.cs
index 6e3c0f40..9195ef4f 100644
--- a/BackEnd/Timeline.Tests/Services/SearchServiceTest.cs
+++ b/BackEnd/Timeline.Tests/Services/SearchServiceTest.cs
@@ -19,10 +19,10 @@ namespace Timeline.Tests.Services
[Fact]
public async Task TimelineSearch_Should_Work()
{
- await TimelineService.CreateTimelineAsync("hahaha", UserId);
- var t2 = await TimelineService.CreateTimelineAsync("bababa", UserId);
+ await TimelineService.CreateTimelineAsync(UserId, "hahaha");
+ var t2 = await TimelineService.CreateTimelineAsync(UserId, "bababa");
await TimelineService.ChangePropertyAsync(t2.Id, new TimelineChangePropertyParams { Title = "hahaha" });
- await TimelineService.CreateTimelineAsync("bbbbbb", UserId);
+ await TimelineService.CreateTimelineAsync(UserId, "bbbbbb");
var searchResult = await _service.SearchTimelineAsync("hah");
searchResult.Items.Should().HaveCount(2);