Skip to content

Commit

Permalink
♻️ :: [#511] ArtistReactorTests
Browse files Browse the repository at this point in the history
  • Loading branch information
KangTaeHoon committed May 13, 2024
1 parent af7898e commit 3099fea
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions Projects/Features/ArtistFeature/Tests/ArtistReactorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class ArtistReactorTests: XCTestCase {
// Then
XCTAssertEqual(fetchArtistListUseCase.callCount, 1)
XCTAssertEqual(sut.currentState.artistList[0], dummyArtistList.first)
XCTAssertEqual(sut.currentState.artistList[0].artistId, "")
XCTAssertEqual(sut.currentState.artistList[0].ID, "")
XCTAssertEqual(sut.currentState.artistList[0].isHiddenItem, true)
}

Expand All @@ -59,34 +59,28 @@ final class ArtistReactorTests: XCTestCase {
private func makeTwoDummyArtistList() -> [ArtistListEntity] {
[
ArtistListEntity(
artistId: "",
name: "",
short: "",
group: "",
ID: "",
krName: "",
enName: "",
groupName: "",
title: "",
description: "",
color: [],
youtube: "",
twitch: "",
instagram: "",
imageRoundVersion: 0,
imageSquareVersion: 0,
personalColor: "",
roundImage: "",
squareImage: "",
graduated: false,
isHiddenItem: true
isHiddenItem: false
),
ArtistListEntity(
artistId: "2",
name: "nam2",
short: "short2",
group: "group2",
ID: "2",
krName: "nam2",
enName: "eng2",
groupName: "group2",
title: "title2",
description: "description2",
color: [["ffffff"]],
youtube: "https://youtube.com",
twitch: "twitch",
instagram: "insta",
imageRoundVersion: 1,
imageSquareVersion: 1,
personalColor: "ffffff",
roundImage: "",
squareImage: "",
graduated: false,
isHiddenItem: false
)
Expand Down

0 comments on commit 3099fea

Please sign in to comment.