This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tobias
authored
Mar 30, 2021
1 parent
fdbd6d3
commit fb22fc6
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
"default": true, | ||
"active": true, | ||
"name": "[email protected]", | ||
"email": "[email protected]", | ||
"email": null, | ||
"description": "Default recipient", | ||
"type": "individual", | ||
"tax_id": "", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import XCTest | ||
import Omise | ||
|
||
class RecipientOperationFixtureTests: FixtureTestCase { | ||
|
||
func testRecipientList() { | ||
let expectation = self.expectation(description: "recipient list") | ||
|
||
let request = Recipient.list(using: testClient, params: nil) { (result) in | ||
defer { expectation.fulfill() } | ||
|
||
switch result { | ||
case let .success(recipientList): | ||
XCTAssertEqual(recipientList.data.count, 2) | ||
case let .failure(error): | ||
XCTFail("\(error)") | ||
} | ||
} | ||
|
||
XCTAssertNotNil(request) | ||
waitForExpectations(timeout: 15.0, handler: nil) | ||
} | ||
|
||
} |