File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,15 @@ final class ForwardPaginationTests: XCTestCase, CacheDependentTesting {
204
204
let newResult = try await XCTUnwrapping ( await pager. currentValue)
205
205
try XCTAssertSuccessResult ( newResult) { output in
206
206
// Assert first page is unchanged
207
+ if
208
+ let oldResults = try ? result. get ( ) . initialPage,
209
+ let newResults = try ? newResult. get ( ) . initialPage,
210
+ oldResults != newResults
211
+ {
212
+ print ( " test_fetchMultiplePages_mutateHero - debugging output " )
213
+ print ( " Old: \( oldResults. asJSONDictionary ( ) ) " )
214
+ print ( " New: \( newResults. asJSONDictionary ( ) ) " )
215
+ }
207
216
XCTAssertEqual ( try ? result. get ( ) . initialPage, try ? newResult. get ( ) . initialPage)
208
217
XCTAssertFalse ( output. nextPages. isEmpty)
209
218
XCTAssertEqual ( output. nextPages. count, 1 )
You can’t perform that action at this time.
0 commit comments