Skip to content

Commit

Permalink
Update PaginatedListTests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
5d authored Jan 18, 2024
1 parent 5a544f5 commit cac2148
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ class PaginatedListTests: XCTestCase {
}
}

/// - Given: a `Post` Sync query with items, nextToken, and with sync data (startedAt, _version, etc)
/// - When:
/// - some of the JSON items are not able to be decoded to Post
/// - the JSON is decoded into `PaginatedList<Post>`
/// - Then:
/// - the result should contain only valid items of type MutationSync<Post>, startedAt, nextToken.
func testDecodePaginatedListOptimistically() {
let syncQueryJSON = """
{
Expand Down

0 comments on commit cac2148

Please sign in to comment.