Skip to content

Instantly share code, notes, and snippets.

describe('Navbar',() => {
it('should get success request to api and render the poins on navbar', async () => {
const displayPontos = await screen.findByTestId('display-pontos')
const getPontos = await ApiClient().get('ponto/total/user')
expect(displayPontos).toHaveTextContent(`${getPontos.data.total}`)
})
})