Skip to content

Commit b96ef81

Browse files
committed
test: 테스트 코드에 멤버 역할 추가
1 parent c664688 commit b96ef81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

frontend/src/test/sortMemberByStatus.test.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import sortMemberByStatus from "../utils/sortMemberByStatus";
44
describe("sortMemberByStatus test", () => {
55
it("on, away, off 순 정렬 테스트", () => {
66
const memberList: LandingMemberDTO[] = [
7-
{ id: 1, username: "", imageUrl: "", status: "off" },
8-
{ id: 2, username: "", imageUrl: "", status: "on" },
9-
{ id: 3, username: "", imageUrl: "", status: "away" },
10-
{ id: 4, username: "", imageUrl: "", status: "on" },
11-
{ id: 5, username: "", imageUrl: "", status: "off" },
12-
{ id: 6, username: "", imageUrl: "", status: "away" },
7+
{ id: 1, username: "", imageUrl: "", status: "off", role: "LEADER" },
8+
{ id: 2, username: "", imageUrl: "", status: "on", role: "MEMBER" },
9+
{ id: 3, username: "", imageUrl: "", status: "away", role: "MEMBER" },
10+
{ id: 4, username: "", imageUrl: "", status: "on", role: "MEMBER" },
11+
{ id: 5, username: "", imageUrl: "", status: "off", role: "MEMBER" },
12+
{ id: 6, username: "", imageUrl: "", status: "away", role: "MEMBER" },
1313
];
1414

1515
const sortedMemberIdList = memberList

0 commit comments

Comments
 (0)