Skip to content

Commit

Permalink
Remove DataDict merge error test
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Feb 23, 2024
1 parent 528ae7b commit 1394889
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Tests/ApolloTests/DataDictMergingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,6 @@ class DataDictMergingTests: XCTestCase {
).to(throwError(DataDict.MergeError.emptyMergePath))
}

func test__merging__givenPathForDataTypeNotAccessibleByPathComponent_throwsError() throws {
// given
let subject = DataDict([
"animals": [
"__typename": "Animal",
"name": "Dog"
]
])

let mergeDataDict = DataDict([
"key": "value"
])

// then
expect(
try subject.merging(mergeDataDict, at: [.field("animals"), .field("name")])
).to(throwError(DataDict.MergeError.dataTypeNotAccessibleByPathComponent(.field("animals"))))
}

func test__merging__givenIndexPathForDataDictType_throwsError() throws {
// given
let subject = DataDict([
Expand Down

0 comments on commit 1394889

Please sign in to comment.