Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Stripe/StripeiOSTests/LinkSignupViewModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ class LinkInlineSignupViewModelTests: STPNetworkStubbingTestCase {
XCTAssertNotEqual(sut.mode, .checkboxWithDefaultOptIn)
}

func test_defaultOptIn_not_allowed_outside_US() {
let sut = makeSUT(country: "CA", showCheckbox: true, allowsDefaultOptIn: true)
XCTAssertNotEqual(sut.mode, .checkboxWithDefaultOptIn)
}

func test_defaultOptIn_not_allowed_if_showing_checkbox() {
let sut = makeSUT(country: "US", showCheckbox: false, allowsDefaultOptIn: true)
XCTAssertNotEqual(sut.mode, .checkboxWithDefaultOptIn)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ final class LinkInlineSignupViewModel {
if signupOptInFeatureEnabled && emailWasPrefilled {
self.mode = .signupOptIn
} else if showCheckbox {
let allowsDefaultOptIn = allowsDefaultOptIn && country == "US"
self.mode = allowsDefaultOptIn ? .checkboxWithDefaultOptIn : .checkbox
} else {
// If we don't show a checkbox *and* we have a prefilled email, show the phone field first.
Expand Down
Loading