Skip to content

Commit

Permalink
fix(stats): stats changes push again
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtabBukhari committed Oct 22, 2024
1 parent 9df8484 commit 1431594
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/Stats/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,15 @@ describe('Component Test Stats', () => {
expect(getByText(mockStats.video_count)).toBeInTheDocument()
})

it('tests formatting of numbers', async () => {
it('test formatting of numbers', () => {
const mockedFormatStats = jest.spyOn(formatStats, 'formatNumberWithCommas')

render(<Stats />)

await waitFor(() => {
expect(mockedFormatStats).toHaveBeenCalledTimes(8)
})
;(async () => {
await waitFor(() => {
expect(mockedFormatStats).toHaveBeenCalledTimes(8)
})
})()
})

it('tests that document stat pill is not displayed when the document count is zero', () => {
Expand Down

0 comments on commit 1431594

Please sign in to comment.