Fakultas Ilmu Komputer UI

Commit 786c7290 authored by Kefas Satrio Bangkit Solideantyo's avatar Kefas Satrio Bangkit Solideantyo
Browse files

improve test for diet profile

parent 03043343
Pipeline #76673 passed with stages
in 24 minutes and 41 seconds
......@@ -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();
});
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment