From ed21fb3e0144caa273cc32b68923d6da62158244 Mon Sep 17 00:00:00 2001 From: fcbento Date: Mon, 16 Dec 2024 22:44:13 -0300 Subject: [PATCH] fix: tests variables --- src/services/orgs/tests/register-org-service.spec.ts | 2 +- src/services/pet-photos/tests/get-pet-photos-service.spec.ts | 1 - src/services/pets/tests/list-pets-service.spec.ts | 3 ++- src/services/pets/tests/pets-service.spec.ts | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/services/orgs/tests/register-org-service.spec.ts b/src/services/orgs/tests/register-org-service.spec.ts index 9484b04..6655a84 100644 --- a/src/services/orgs/tests/register-org-service.spec.ts +++ b/src/services/orgs/tests/register-org-service.spec.ts @@ -9,7 +9,7 @@ let sut: RegisterOrgService const request = { name: 'Test Org', - cep: 8560250, + cep: '8560250', email: 'org@test.com', password: '123456', whatsapp: '985672298' diff --git a/src/services/pet-photos/tests/get-pet-photos-service.spec.ts b/src/services/pet-photos/tests/get-pet-photos-service.spec.ts index aebac1c..45052ab 100644 --- a/src/services/pet-photos/tests/get-pet-photos-service.spec.ts +++ b/src/services/pet-photos/tests/get-pet-photos-service.spec.ts @@ -1,6 +1,5 @@ import { InMemoryPetPhotosRepository } from "@/repositories/photos/in-memory-pet-photos-repository" import { describe, expect, it } from "vitest" -import { RegisterPetPhotoService } from "../register-pet-photos-service" import { GetPetPhotosService } from "../get-pet-photos-service" let petsRepository: InMemoryPetPhotosRepository diff --git a/src/services/pets/tests/list-pets-service.spec.ts b/src/services/pets/tests/list-pets-service.spec.ts index 274e488..8d57c6c 100644 --- a/src/services/pets/tests/list-pets-service.spec.ts +++ b/src/services/pets/tests/list-pets-service.spec.ts @@ -2,8 +2,9 @@ import { InMemoryPetsRepository } from "@/repositories/pets/in-memory-pets-repos import { beforeEach, describe, expect, it } from "vitest"; import { ListPetService } from "../list-pets-service"; import { RegisterPetService } from "../pets-service"; +import { PetsRepository } from "@/repositories/pets/prisma-pets-repository"; -let petsRepository: InMemoryPetsRepository +let petsRepository: PetsRepository let sut: ListPetService let sutRegister: RegisterPetService diff --git a/src/services/pets/tests/pets-service.spec.ts b/src/services/pets/tests/pets-service.spec.ts index 300074a..9faa6f1 100644 --- a/src/services/pets/tests/pets-service.spec.ts +++ b/src/services/pets/tests/pets-service.spec.ts @@ -1,8 +1,9 @@ import { InMemoryPetsRepository } from "@/repositories/pets/in-memory-pets-repository" import { describe, beforeEach, it, expect } from "vitest" import { RegisterPetService } from "../pets-service" +import { PetsRepository } from "@/repositories/pets/prisma-pets-repository" -let petsRepository: InMemoryPetsRepository +let petsRepository: PetsRepository let sut: RegisterPetService describe('Register pet service', () => {