We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`func test_getYearsFilter_if() {
//given var capturedCompletionBlock: ((YearsFilterResponse) -> Void)? let yearsFilterResponseObject = YearsFilterResponse() yearsFilterResponseObject.years = ["2020", "2019", "2018"] let statementFilterModel = [StatementFilterModel]() //expect mockMFStatementRepo.expect { m in m.getYearsFilter { (_) in } failure: { (_) in } }.doing { (actionArgs) in capturedCompletionBlock = actionArgs[0] as? ((YearsFilterResponse) -> Void) } // expect mockMFStatementRepo.expect { o in o.getMfStatementFilter() }.returning(statementFilterModel) //when viewModel.getYearsFilter() //then mockMFStatementRepo.verify() // then later, call that captured block to simulate an incoming response capturedCompletionBlock?(yearsFilterResponseObject) //Assert XCTAssertEqual(viewModel.yearsFilterOptions, yearsFilterResponseObject.years) }`
The text was updated successfully, but these errors were encountered:
Thank-you for raising an issue @RohitNegi, but I'll need more information to understand the problem.
Can you explain please:
Sorry, something went wrong.
Oh, I think I understand. This seems to be related to #12.
Investigating!
Can this issue be closed @RohitNegi ?
Yes, it can be, thanks @mflint
No branches or pull requests
`func test_getYearsFilter_if() {
The text was updated successfully, but these errors were encountered: