Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Mobile
Commits
786c7290
Commit
786c7290
authored
May 15, 2021
by
Kefas Satrio Bangkit Solideantyo
Browse files
improve test for diet profile
parent
03043343
Pipeline
#76673
passed with stages
in 24 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/scenes/questionnaire/ReadOnlyDietProfile/index.test.tsx
View file @
786c7290
...
...
@@ -11,4 +11,14 @@ describe('ReadOnlyDietProfile', () => {
routeParams
:
mockDietQuestionnaire
,
});
});
it
(
'
shows "Klien belum mengisi diet questionnaire" text if no questionnaire answer is provided yet
'
,
()
=>
{
const
{
getByText
}
=
render
(
<
ReadOnlyDietProfile
/>,
ROUTES
.
clientProfileNutritionist
,
{
routeParams
:
{
id
:
null
},
},
);
expect
(
getByText
(
/Klien belum mengisi diet questionnaire/i
)).
toBeTruthy
();
});
});
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment