Skip to content

Commit 062c0bc

Browse files
committed
Rune code cleanup
1 parent f8d646c commit 062c0bc

File tree

1 file changed

+24
-26
lines changed

1 file changed

+24
-26
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/Meta/RequestMetaTests.cs

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
265265

266266
await _testContext.RunOnDatabaseAsync(async dbContext =>
267267
{
268-
SupportTicket? supportTicketInDatabase = await dbContext.SupportTickets
269-
.Include(supportTicket => supportTicket.ProductFamily)
268+
SupportTicket? supportTicketInDatabase = await dbContext.SupportTickets.Include(supportTicket => supportTicket.ProductFamily)
270269
.FirstAsync(supportTicket => supportTicket.Id == existingTicket.Id);
271270

272271
supportTicketInDatabase.ProductFamily.Should().BeNull();
@@ -689,8 +688,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
689688

690689
await _testContext.RunOnDatabaseAsync(async dbContext =>
691690
{
692-
SupportTicket? supportTicketInDatabase = await dbContext.SupportTickets
693-
.Include(supportTicket => supportTicket.ProductFamily)
691+
SupportTicket? supportTicketInDatabase = await dbContext.SupportTickets.Include(supportTicket => supportTicket.ProductFamily)
694692
.FirstAsync(supportTicket => supportTicket.Id == existingTicket.Id);
695693

696694
supportTicketInDatabase.ProductFamily.Should().BeNull();
@@ -753,42 +751,42 @@ private static void ValidateMetaData(IDictionary<string, object?>? meta)
753751
string innerJson = value.Should().BeOfType<JsonElement>().Subject.ToString();
754752

755753
innerJson.Should().BeJson("""
756-
[
757-
"login",
758-
"single-sign-on"
759-
]
760-
""");
754+
[
755+
"login",
756+
"single-sign-on"
757+
]
758+
""");
761759
});
762760

763761
meta.Should().ContainKey("relatedTo").WhoseValue.With(value =>
764762
{
765763
string innerJson = value.Should().BeOfType<JsonElement>().Subject.ToString();
766764

767765
innerJson.Should().BeJson("""
768-
[
769-
{
770-
"id": 123,
771-
"link": "https://www.ticket-system.com/bugs/123"
772-
},
773-
{
774-
"id": 789,
775-
"link": "https://www.ticket-system.com/bugs/789"
776-
}
777-
]
778-
""");
766+
[
767+
{
768+
"id": 123,
769+
"link": "https://www.ticket-system.com/bugs/123"
770+
},
771+
{
772+
"id": 789,
773+
"link": "https://www.ticket-system.com/bugs/789"
774+
}
775+
]
776+
""");
779777
});
780778

781779
meta.Should().ContainKey("contextInfo").WhoseValue.With(value =>
782780
{
783781
string innerJson = value.Should().BeOfType<JsonElement>().Subject.ToString();
784782

785783
innerJson.Should().BeJson("""
786-
{
787-
"source": "form-submission",
788-
"retries": 1,
789-
"authenticated": false
790-
}
791-
""");
784+
{
785+
"source": "form-submission",
786+
"retries": 1,
787+
"authenticated": false
788+
}
789+
""");
792790
});
793791
}
794792

0 commit comments

Comments
 (0)