Skip to content

Commit

Permalink
fix: fix response
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusSanchez committed Nov 23, 2023
1 parent 23c72e3 commit a1f51e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/use-cases/searchGym.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ describe('Search Gym Use Case Test', () => {
longitude: -49.6401091,
})

const { gym } = await searchGymUseCase.execute({
const { gyms } = await searchGymUseCase.execute({
title: 'Sancho Gym',
page: 1,
})

expect(gym).toHaveLength(1)
expect(gym).toEqual([expect.objectContaining({ title: 'Sancho Gym' })])
expect(gyms).toHaveLength(1)
expect(gyms).toEqual([expect.objectContaining({ title: 'Sancho Gym' })])
})

it('should be able to search a gym by title but pagionate', async () => {
Expand All @@ -49,13 +49,13 @@ describe('Search Gym Use Case Test', () => {
})
}

const { gym } = await searchGymUseCase.execute({
const { gyms } = await searchGymUseCase.execute({
title: 'Sancho Gym',
page: 2,
})

expect(gym).toHaveLength(2)
expect(gym).toEqual([
expect(gyms).toHaveLength(2)
expect(gyms).toEqual([
expect.objectContaining({ title: 'Sancho Gym-21' }),
expect.objectContaining({ title: 'Sancho Gym-22' }),
])
Expand Down

0 comments on commit a1f51e2

Please sign in to comment.