Skip to content

Commit cfb92ae

Browse files
committed
Updated unit tests
1 parent 85d948c commit cfb92ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Tests/CoreModelTests/TestModel.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ extension Person: Entity {
4949

5050
static var relationships: [CodingKeys: Relationship] {
5151
[
52-
.events: .init(
53-
id: PropertyKey(CodingKeys.events),
52+
.events: Relationship(
53+
id: .events,
54+
entity: Person.self,
55+
destination: Event.self,
5456
type: .toMany,
55-
destinationEntity: Event.entityName,
56-
inverseRelationship: PropertyKey(Event.CodingKeys.people)
57+
inverseRelationship: .people
5758
)
5859
]
5960
}

0 commit comments

Comments
 (0)