-
Notifications
You must be signed in to change notification settings - Fork 2
Jest 문서
jin-Pro edited this page Aug 14, 2022
·
6 revisions
chatHandler
-
chatInfoHandler
- used getFetch API Func
- Input { url : CHAT_INFO_URL , query : "" }
- Output ChatInfoType []
- test("getChatInfo API is Success")
- used getFetch API Func
-
chatMessagesHandler
- used getChatmessage API Func
- Input { index, chatRoomId }
- Output MessageType[]
- test("getChatMessage API is Success")
- test("getChatMessage API is index Fail")
- test("getChatMessage API is chatRoomId Fail")
- used getChatmessage API Func
-
joinChatHandler
- used getFetch API Func
- Input { url : JOIN_CHAT_URL, query : "" }
- Output joinChatType[]
- test("getjJoinChat API is Success");
- used getFetch API Func
-
postChatReadHandler
- used changeNotReadToRead API Func
- Input number
- Output number
- test("chgangeNotReadToRead API is Success")
- test("chgangeNotReadToRead API is Fail")
- used changeNotReadToRead API Func
requestHandler
acceptHandler
- used requestAccept API Func
- Input { from , to }
- Output true | fasle
- test("requestAccept API is Success")
- test("requestAccept API is From Fail")
- test("requestAccept API is To Fail")
- test("requestAccept API is From same To Fail")
denyHandler
- used requestDeny API Func
- Input { from , to }
- Output true | false
- test("requestDeny API is Success")
- test("requestDeny API is From Fail")
- test("requestDeny API is To Fail")
- test("requestDeny API is From same To Fail")
requestApiHandler
- used requestChat API Func
- Input { from , to }
- Output true | false
- test("requestChat API is Success")
- test("requestChat API is From Fail")
- test("requestChat API is To Fail")
- test("requestChat API is From same To Fail")
requestHandle
- used getFetch API Func
- Input { url : REQUEST_URL, query : "" }
- Output RequestType[]
- test("getRequestInfo API is Success")
teamHandler
teamCreateHandler
- used createTeam API Func
- Input { teamName, teamInfo, location }
- Output true | false
- test("createTeam APi Success")
- test("createTeam APi Fail")
teamExitHandler
- used exitTeam API Func
- Input none
- Output true or false
- test("exitTeam API Success")
teamInfoHandler
- used getFetch API Func
- Input { url : TEAM_INFO_URL, query : "" }
- Output TeamInfoType
- test("getTeamInfo API Success")
teamInviteHandler
- used inviteTeam API Func
- Input { userId }
- Output true | false
- test("inviteTeam API Success")
- test("inviteTeam API Fail")
teamUpdateHandler
- used changeTeamInfo API Func
- Input { teamName, teamInfo, location }
- Output true or false
- test("changeTeamInfo API Success")
- test("changeTeamInfo API Fail")
UserHandler
profileHandler
- used getFetch API Func
- Input { url : "PROFILE_API_URL" , query : "person,index,category" }
- Output ProfileType[]
- test("getProfile API is Success")
userHandler
- used getFetch API Func
- Input { url : USER_URL , query : "" }
- Output PersonInfoType
- test("getUserInfo API is Success")
userInfoHandler
- used changeMyInfo API Func
- Input { id , location , age , info }
- Output true | false
- test("changeMyInfo API is Success")
- test("changeMyInfo API is Id Fail")
- test("changeMyInfo API is location Fail")
- test("changeMyInfo API is age Fail")
- test("changeMyInfo API is info Fail")
validationHandler
checkIdValidationHandler
- used checkIdValidation API Func
- Input string
- Output true | false
- test("checkIdValidation is Success false")
- test("checkIdValidation is Success true")
- test("checkIdValidation is Fail")
loginHandler
- used postLogin API Func
- Input { id , pw }
- Output true | false
- test("postLogin API Success");
- test("postLogin API Fail");
logOutHandler
- used logOutUser API Func
- Input none
- Output true | false
- test("logOutUser API is Success")
registerHandler
- used registerUser API Func
- Input { id , pw , location , age, sex, info }
- Output true | false
- test("registerUser API is Success")
- test("registerUser API is ID Error")
- test("registerUser API is sex Error")
- test("registerUser API is PW Error")
- test("registerUser API is location Error")
- test("registerUser API is age error")
- test("registerUser API is info error")