Skip to content

Commit

Permalink
Clean up test data transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Sep 11, 2024
1 parent 453e4dd commit a4f6284
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Tests/ApolloTests/ObjectDataTransformerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,9 @@ class ObjectDataTransformerTests: XCTestCase {
}
}

func transform(_ value: AnyHashable) -> ObjectData? {
return nil
}

func transform(_ value: AnyHashable) -> ListData? {
switch value {
case let list as [AnyHashable]:
return ListData(_transformer: self, _rawData: list)
default:
return nil
}
}
// Empty until needed in tests
func transform(_ value: AnyHashable) -> ObjectData? { return nil }
func transform(_ value: AnyHashable) -> ListData? { return nil }
}

// MARK: ObjectData Tests
Expand Down

0 comments on commit a4f6284

Please sign in to comment.