in FBSDKGamingServicesKit/FBSDKGamingServicesKitTests/Internal/TournamentUpdaterTest.swift [178:193]
func testHandlingUpdateWithInvalidTournamentID() throws {
var completionWasInvoked = false
updater.update(tournamentID: "", score: 1) { result in
switch result {
case let .failure(error):
guard case .invalidTournamentID = error else {
return XCTFail("Should receive invalidTournamentID error but instead received: \(error)")
}
case .success:
XCTFail("Should not succeed")
}
completionWasInvoked = true
}
XCTAssert(completionWasInvoked)
}