diff options
Diffstat (limited to 'BackEnd/Timeline.Tests')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs | 1 | ||||
-rw-r--r-- | BackEnd/Timeline.Tests/Services/SearchServiceTest.cs | 6 |
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);
|