Skip to content

Commit d59794e

Browse files
committed
test(meta): ensure there is at least one item in the context
1 parent cf00db4 commit d59794e

File tree

1 file changed

+3
-1
lines changed
  • test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests

1 file changed

+3
-1
lines changed

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests/Meta.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public async Task Total_Record_Count_Included()
3434
{
3535
// arrange
3636
_context.TodoItems.RemoveRange(_context.TodoItems);
37-
var expectedCount = _context.TodoItems.Count();
37+
_context.TodoItems.Add(new TodoItem());
38+
_context.SaveChanges();
39+
var expectedCount = 1;
3840
var builder = new WebHostBuilder()
3941
.UseStartup<MetaStartup>();
4042

0 commit comments

Comments
 (0)