From 319bedf06978a26d1702d9400468c4dcc8c465c2 Mon Sep 17 00:00:00 2001 From: Bruno Henrique Date: Mon, 27 Nov 2023 13:26:29 -0300 Subject: [PATCH] fix: consertando workflow --- .github/workflows/run-e2e-tests.yml | 8 ++++---- src/use-cases/fetch-user-check-ins-history.spec.ts | 5 ++--- src/use-cases/search-gyms.spec.ts | 5 ++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run-e2e-tests.yml b/.github/workflows/run-e2e-tests.yml index 8eff762..7439efa 100644 --- a/.github/workflows/run-e2e-tests.yml +++ b/.github/workflows/run-e2e-tests.yml @@ -12,10 +12,10 @@ jobs: image: bitnami/postgresql ports: - 5432:5432 - environment: - - POSTGRESQL_USERNAME=docker - - POSTGRESQL_PASSWORD=docker - - POSTGRESQL_DATABASE=apisolid + env: + POSTGRESQL_USERNAME: docker + POSTGRESQL_PASSWORD: docker + POSTGRESQL_DATABASE: apisolid steps: - name: Download Application diff --git a/src/use-cases/fetch-user-check-ins-history.spec.ts b/src/use-cases/fetch-user-check-ins-history.spec.ts index 74f8c19..abffab5 100644 --- a/src/use-cases/fetch-user-check-ins-history.spec.ts +++ b/src/use-cases/fetch-user-check-ins-history.spec.ts @@ -1,5 +1,5 @@ -import { describe, it, beforeEach, expect } from 'vitest' import { InMemoryCheckInsRepository } from '@/repositories/in-memory/in-memory-check-ins-repository' +import { beforeEach, describe, expect, it } from 'vitest' import { FetchUserCheckInsHistoryUseCase } from './fetch-user-check-ins-history' let checkInsRepository: InMemoryCheckInsRepository @@ -34,8 +34,7 @@ describe('Fetch Check-in History Use Case', () => { ]) }) - it.skip('should be able to fetch paginated user check-in history', async () => { - // Out of memory + it('should be able to fetch paginated user check-in history', async () => { for (let i = 1; 1 <= 22; i++) { await checkInsRepository.create({ gym_id: `gym-${i}`, diff --git a/src/use-cases/search-gyms.spec.ts b/src/use-cases/search-gyms.spec.ts index 1371681..eb39550 100644 --- a/src/use-cases/search-gyms.spec.ts +++ b/src/use-cases/search-gyms.spec.ts @@ -1,5 +1,5 @@ -import { describe, it, beforeEach, expect } from 'vitest' import { InMemoryGymsRepository } from '@/repositories/in-memory/in-memory-gyms-repository' +import { beforeEach, describe, expect, it } from 'vitest' import { SearchGymsUseCase } from './search-gyms' let gymsRepository: InMemoryGymsRepository @@ -37,8 +37,7 @@ describe('Search Gyms Use Case', () => { expect(gyms).toEqual([expect.objectContaining({ title: 'Javascript Gym' })]) }) - it.skip('should be able to fetch paginated gyms search', async () => { - // skip by Out of memory + it('should be able to fetch paginated gyms search', async () => { for (let i = 1; 1 <= 22; i++) { await gymsRepository.create({ title: `Javascript Gym ${i}`,