Skip to content

Commit a9eb4b3

Browse files
author
Leontev Daniil
committed
fix mvd test
1 parent ad2b4a8 commit a9eb4b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kontur.Extern.Api.Client.End2EndTests/Client/HandbooksPathExtensions_Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public async Task Should_return_handbooks(HandbookType handbookType)
222222

223223
var handbook = await Context.Handbooks.GetHandbook(handbookType, handbookFilter);
224224
handbook.HandbookType.Should().Be(handbookType);
225-
handbook.Take.Should().Be(25);
225+
handbook.Take.Should().Be(handbook.TotalCount < 25 ? handbook.TotalCount : 25);
226226
}
227227

228228
public static IEnumerable<object[]> GetAllHandbookTypes()

0 commit comments

Comments
 (0)