-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from YAPP-Github/Test/#211
[Test/#211] Account, UserInfo Repository ํ ์คํธ
- Loading branch information
Showing
13 changed files
with
614 additions
and
56 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
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
24 changes: 0 additions & 24 deletions
24
RefillStation/RefillStation/Domain/UseCases/Account/CreateNicknameUseCase.swift
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
RefillStation/RefillStationTests/RepositoryTests/Account/SignOutTest.swift
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,33 @@ | ||
// | ||
// SignOutTest.swift | ||
// RefillStationTests | ||
// | ||
// Created by kong on 2023/02/25. | ||
// | ||
|
||
import XCTest | ||
@testable import RefillStation | ||
|
||
final class SignOutTest: XCTestCase { | ||
var testUnit: AsyncAccountRepository! | ||
|
||
override func setUpWithError() throws { | ||
try super.setUpWithError() | ||
let dummyURL = "www.pump.com" | ||
testUnit = AsyncAccountRepository(networkService: MockNetworkService(baseURL: dummyURL, dataToReturn: nil), keychainManager: MockKeychainManager()) | ||
} | ||
override func tearDownWithError() throws { | ||
testUnit = nil | ||
} | ||
|
||
func test_signOut_ํธ์ถ์_์๋ฌ๊ฐ_๋ฐ์ํ์ง_์๋์ง() async throws { | ||
// given | ||
do { | ||
// when | ||
_ = try await testUnit.signOut() | ||
// then | ||
} catch { | ||
XCTFail("failed: \(error)") | ||
} | ||
} | ||
} |
Oops, something went wrong.