Skip to content

Instantly share code, notes, and snippets.

@danizavtz
Created April 15, 2024 20:30
Show Gist options
  • Save danizavtz/0f2eb1e4cd554ba0839fd20b322845d0 to your computer and use it in GitHub Desktop.
Save danizavtz/0f2eb1e4cd554ba0839fd20b322845d0 to your computer and use it in GitHub Desktop.
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}`)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment