in FBSDKGamingServicesKit/FBSDKGamingServicesKitTests/TournamentFetcherTests.swift [90:108]
func testFetchTournamentsAuthTokenWithInvalidGraphDomain() throws {
var completionWasInvoked = false
AuthenticationToken.current = SampleAuthenticationToken.validToken(withGraphDomain: "notGaming")
fetcher.fetchTournaments { result in
switch result {
case let .failure(error):
guard case .invalidAuthToken = error else {
return XCTFail("Was expecting invalid auth token error, instead recieved:\(error)")
}
case .success:
XCTFail("Should not succeed")
}
completionWasInvoked = true
}
XCTAssert(completionWasInvoked)
}