Skip to content

Commit

Permalink
test: metrics GLICEMIA
Browse files Browse the repository at this point in the history
  • Loading branch information
Natyrodrigues committed Sep 18, 2024
1 parent e03d5c3 commit 91b9c1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/__tests__/cardMetrica.spec.tsx
Original file line number Diff line number Diff line change
@@ -65,6 +65,15 @@ describe('CardMetrica Component', () => {
});
});

it('renderiza corretamente com um valor de métrica GLICEMIA', async () => {
const { getByText } = render(<CardMetrica item={mockItemGlicemia} />);

await waitFor(() => {
expect(getByText('80')).toBeTruthy(); // Verifica se o valor da métrica é exibido
expect(getByText('mg/dL')).toBeTruthy(); // Verifica se a unidade de medida está correta
});
});

it('mostra a data e a hora corretas', async () => {
const { getByText } = render(<CardMetrica item={mockItemFrequencia} />);

0 comments on commit 91b9c1f

Please sign in to comment.