Skip to content

Commit 4a948bb

Browse files
committed
Simplify readable test names
1 parent c06d706 commit 4a948bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/Tests/StorageTests/GRDB/GRDBManagerTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct GRDBManagerTests {
5555
}
5656
}
5757

58-
@Test("Can insert product to a freshly initialised database")
58+
@Test("Insert product to a freshly initialised database")
5959
func test_after_init_can_insert_a_product() throws {
6060
// Given
6161

@@ -81,7 +81,7 @@ struct GRDBManagerTests {
8181
#expect(productCount == 1)
8282
}
8383

84-
@Test("Can insert product variation with a relationship to a product")
84+
@Test("Insert product variation with a relationship to a product")
8585
func test_after_init_can_insert_productVariation_with_foreign_key() throws {
8686
// Given – parent product
8787
try manager.databaseQueue.write { db in
@@ -118,7 +118,7 @@ struct GRDBManagerTests {
118118
#expect(variations.first?.productID == 100)
119119
}
120120

121-
@Test("Can query variations by product ID")
121+
@Test("Fetch variations by product ID")
122122
func test_after_init_and_insert_can_query_productVariation_using_foreign_key() throws {
123123
// Given parent product and some variations
124124
try manager.databaseQueue.write { db in
@@ -159,7 +159,7 @@ struct GRDBManagerTests {
159159
#expect(variations.allSatisfy { $0.productID == 100 })
160160
}
161161

162-
@Test("Can insert product attribute with options array (JSON)")
162+
@Test("Insert product attribute with options array (JSON)")
163163
func test_after_init_can_insert_productAttribute_with_options_as_JSON_array() throws {
164164
// Given parent product
165165
try manager.databaseQueue.write { db in
@@ -198,7 +198,7 @@ struct GRDBManagerTests {
198198
#expect(attribute?.options == ["Red", "Blue", "Green"])
199199
}
200200

201-
@Test("Can insert variation attributes")
201+
@Test("Insert variation attributes")
202202
func test_after_init_can_insert_variation_attributes() throws {
203203
// Given parent product and variation
204204
try manager.databaseQueue.write { db in

0 commit comments

Comments
 (0)