Skip to content

Commit d941660

Browse files
committed
tweak test expectation
1 parent 6ccd8fd commit d941660

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Sources/JSONAPI/Resource/Resource Object/ResourceObjectDecodingError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ extension ResourceObjectDecodingError: CustomStringConvertible {
137137
case .keyNotFound where subjectName == ResourceObjectDecodingError.entireObject:
138138
return "\(location) object is required and missing."
139139
case .keyNotFound where location == .type:
140-
return "'type' (a.k.a. JSON:API type name) is required and missing."
140+
return "'type' (a.k.a. the JSON:API type name) is required and missing."
141141
case .keyNotFound where location == .relationshipType:
142142
return "'\(subjectName)' relationship does not have a 'type'."
143143
case .keyNotFound where location == .relationshipId:
144144
return "'\(subjectName)' relationship does not have an 'id'."
145145
case .keyNotFound:
146146
return "'\(subjectName)' \(location.singular) is required and missing."
147147
case .valueNotFound where location == .type:
148-
return "'\(location.singular)' (a.k.a. JSON:API type name) is not nullable but null was found."
148+
return "'\(location.singular)' (a.k.a. the JSON:API type name) is not nullable but null was found."
149149
case .valueNotFound:
150150
return "'\(subjectName)' \(location.singular) is not nullable but null was found."
151151
case .typeMismatch(expectedTypeName: let expected) where location == .type:

Tests/JSONAPITests/ResourceObject/ResourceObjectDecodingErrorTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ extension ResourceObjectDecodingErrorTests {
488488

489489
XCTAssertEqual(
490490
(error as? ResourceObjectDecodingError)?.description,
491-
#"'type' (a.k.a. JSON:API type name) is required and missing."#
491+
#"'type' (a.k.a. the JSON:API type name) is required and missing."#
492492
)
493493
}
494494
}
@@ -518,7 +518,7 @@ extension ResourceObjectDecodingErrorTests {
518518

519519
XCTAssertEqual(
520520
specialError?.description,
521-
"'type' (a.k.a. JSON:API type name) is not nullable but null was found."
521+
"'type' (a.k.a. the JSON:API type name) is not nullable but null was found."
522522
)
523523
} else {
524524
XCTAssertEqual(
@@ -533,7 +533,7 @@ extension ResourceObjectDecodingErrorTests {
533533

534534
XCTAssertEqual(
535535
specialError?.description,
536-
"'type' (a.k.a. JSON:API type name) is not a String as expected."
536+
"'type' (a.k.a. the JSON:API type name) is not a String as expected."
537537
)
538538
}
539539
}

0 commit comments

Comments
 (0)