Commit e4c4459a by Dima Bart

Fix URL parsing test.

parent d9205a7e
......@@ -147,19 +147,11 @@ NSString * const BUYFakeCustomerToken = @"dsfasdgafdg";
- (void)testCheckoutBadURLParsing
{
XCTestExpectation *expectation = [self expectationWithDescription:NSStringFromSelector(_cmd)];
NSURL *url = [NSURL URLWithString:@"sampleapp://"];
[self.client getCompletionStatusOfCheckoutURL:url completion:^(BUYStatus status, NSError *error) {
XCTAssertEqual(status, BUYStatusUnknown);
XCTAssertEqual(error.code, BUYShopifyError_InvalidCheckoutObject);
[expectation fulfill];
}];
[self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {
XCTAssertNil(error);
}];
XCTAssertThrows(
[self.client getCompletionStatusOfCheckoutURL:url completion:nil]
);
}
- (void)testMerchantId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment