Skip to content

Commit

Permalink
feat: update test mock sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cookiezby committed Nov 4, 2023
1 parent cda809d commit 31e36b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/testing/test-mocks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let data: [String: Any] = [
]
]

let model = HeroAndFriendsQuery.Data(dict: data)
let model = try HeroAndFriendsQuery.Data(data: data)

XCTAssertEqual(model.hero.friends[1].name, "C-3PO")
```
Expand Down

0 comments on commit 31e36b0

Please sign in to comment.