-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
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
Fixed tvOS
tests
#1928
Fixed tvOS
tests
#1928
Changes from all commits
36e5ea9
3ce88e8
c4e91c4
59785d6
0b05e00
cb37c4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ import XCTest | |
|
||
@testable import RevenueCat | ||
|
||
#if os(iOS) || targetEnvironment(macCatalyst) | ||
|
||
class BeginRefundRequestHelperTests: TestCase { | ||
|
||
private var systemInfo: MockSystemInfo! | ||
|
@@ -60,37 +62,6 @@ class BeginRefundRequestHelperTests: TestCase { | |
} | ||
} | ||
|
||
func testBeginRefundRequestForProductFatalErrorIfNotIosOrCatalyst() throws { | ||
#if os(watchOS) || os(macOS) || os(tvOS) | ||
expectFatalError(expectedMessage: Strings.purchase.begin_refund_request_unsupported.description) { | ||
_ = try await helper.beginRefundRequest(forProduct: mockProductID) | ||
} | ||
#else | ||
throw XCTSkip("beginRefundRequestForProduct is not available for this test.") | ||
#endif | ||
} | ||
|
||
func testBeginRefundRequestForEntitlementFatalErrorIfNotIosOrCatalyst() throws { | ||
#if os(watchOS) || os(macOS) || os(tvOS) | ||
expectFatalError(expectedMessage: Strings.purchase.begin_refund_request_unsupported.description) { | ||
_ = try await helper.beginRefundRequest(forEntitlement: mockEntitlementID) | ||
} | ||
#else | ||
throw XCTSkip("beginRefundRequestForEntitlement is not available for this test.") | ||
#endif | ||
} | ||
|
||
func testBeginRefundRequestForActiveEntitlementFatalErrorIfNotIosOrCatalyst() throws { | ||
#if os(watchOS) || os(macOS) || os(tvOS) | ||
expectFatalError(expectedMessage: Strings.purchase.begin_refund_request_unsupported.description) { | ||
_ = try await helper.beginRefundRequestforActiveEntitlement() | ||
} | ||
#else | ||
throw XCTSkip("beginRefundRequestForEntitlement is not available for this test.") | ||
#endif | ||
} | ||
|
||
#if os(iOS) | ||
Comment on lines
-63
to
-93
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are these being deleted? 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I forgot to explain. The expectation wasn't being met (maybe it was before?). The methods aren't even being compiled anymore. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Literally no code used that message string |
||
@available(iOS 15.0, macCatalyst 15.0, *) | ||
func testBeginRefundRequestFailsAndPassesErrorThroughIfPurchasesUnverified() async throws { | ||
try AvailabilityChecks.iOS15APIAvailableOrSkipTest() | ||
|
@@ -250,7 +221,6 @@ class BeginRefundRequestHelperTests: TestCase { | |
expect(error.localizedDescription) == expectedError.localizedDescription | ||
} | ||
} | ||
#endif | ||
|
||
} | ||
|
||
|
@@ -347,3 +317,5 @@ private extension BeginRefundRequestHelperTests { | |
} | ||
|
||
} | ||
|
||
#endif |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was wrong too.