From 1e925a53f373ced58e479501d612dd2d79ac6a46 Mon Sep 17 00:00:00 2001 From: Tran Manh Date: Sat, 22 Jul 2023 09:51:34 +0700 Subject: [PATCH] [#30] Add more test cases --- src/components/Answer/index.tsx | 50 ++++++++++--- src/screens/Question/index.test.tsx | 107 +++++++++++++++++++++++++++- src/screens/Question/index.tsx | 4 +- src/store/reducers/Survey/action.ts | 9 +-- src/store/reducers/Survey/index.ts | 4 +- src/types/question.ts | 4 +- 6 files changed, 155 insertions(+), 23 deletions(-) diff --git a/src/components/Answer/index.tsx b/src/components/Answer/index.tsx index a9ed91c..880127c 100644 --- a/src/components/Answer/index.tsx +++ b/src/components/Answer/index.tsx @@ -23,31 +23,63 @@ const Answer = ({ question, ...rest }: AnswerProps): JSX.Element => { case DisplayType.Star: return ( { + // TODO + }} /> ); case DisplayType.Choice: return ( { + // TODO + }} /> ); case DisplayType.Nps: - return ; + return ( + { + // TODO + }} + /> + ); case DisplayType.Textarea: - return