Skip to content

Commit

Permalink
[TEST] 강제 업데이트 테스트 코드 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
cchanmi committed Jan 16, 2025
1 parent 513c245 commit 7eda3c7
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,25 @@ final class SplashViewModelTest: XCTestCase {

func test_서버로부터_3_2_0_값이내려올때_강제업데이트팝업잘뜨는지() {
// Given
let result = self.viewModel.checkVersion(client: self.beforeAppVersion, force: "3.2.0")
let result = self.viewModel.checkVersion(client: self.beforeAppVersion, force: self.forceVersion)

// When
let expectedResult = true

// Then
XCTAssertEqual(result, expectedResult)
}

func test_서버로부터_3_2_0_값이내려올때_강업잘됐는지() {
// Given
let result = self.viewModel.checkVersion(client: self.afterAppVersion, force: self.forceVersion)

// When
let expectedResult = false

// Then
XCTAssertEqual(result, expectedResult)
}

override func tearDownWithError() throws {
self.mockService = nil
Expand Down

0 comments on commit 7eda3c7

Please sign in to comment.