Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Task/14355 add submission unit tests #4933

Merged
merged 10 commits into from
Dec 15, 2022

Conversation

30mar
Copy link
Contributor

@30mar 30mar commented Dec 13, 2022

Description

Add submission unit tests

Link to Jira

https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-14355

@30mar 30mar added the task part of a feature label Dec 13, 2022
@30mar 30mar added this to the v3.0.0 milestone Dec 13, 2022
@30mar 30mar requested a review from a team December 13, 2022 08:41
Copy link
Contributor

@flxschmidt flxschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🍒

Copy link
Contributor

@puneetmahali1 puneetmahali1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}
}

func testGIVEN_AuthorizeOTP_WHEN_NoNetworkConnection_THEN_NetworkErrorReturned() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a test case for .deviceBlocked?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@naveeddotio naveeddotio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comments

XCTFail("unexpected error case")
return
}
XCTAssertEqual(customError, .otherServerError)
Copy link
Contributor

@naveeddotio naveeddotio Dec 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of the test suggest that it should return internalServerError but in the end we are equating to otherServerError, both of them are different errors if we look into the enum types, am I missing something here?

@naveeddotio naveeddotio merged commit b383015 into release/3.0.x Dec 15, 2022
@naveeddotio naveeddotio deleted the task/14355-Add-submission-unit-tests branch December 15, 2022 10:31
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
task part of a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants