Skip to content

Commit

Permalink
Remove test for legacy OAuth token
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-at-kickstarter committed Feb 20, 2024
1 parent c0c8ca6 commit 62ac189
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Library/AppEnvironmentTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,6 @@ final class AppEnvironmentTests: XCTestCase {
XCTAssertNotNil(env.appTrackingTransparency)
}

func testFromStorage_LegacyUserDefaults() {
let userDefaults = MockKeyValueStore()
userDefaults.set("deadbeef", forKey: "com.kickstarter.access_token")
let env = AppEnvironment.fromStorage(ubiquitousStore: MockKeyValueStore(), userDefaults: userDefaults)

XCTAssertEqual("deadbeef", env.apiService.oauthToken?.token)
XCTAssertTrue(env.apiService.isAuthenticated)
XCTAssertNil(userDefaults.object(forKey: "com.kickstarter.access_token"))
}

func testSaveEnvironment() {
let apiService = MockService(
serverConfig: ServerConfig(
Expand Down

0 comments on commit 62ac189

Please sign in to comment.