From cc35044c75dbc7012c654b26229ec67742501db6 Mon Sep 17 00:00:00 2001 From: aelassas Date: Sun, 22 Dec 2024 19:39:22 +0100 Subject: [PATCH] Fix country.test.ts --- api/__tests__/country.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/__tests__/country.test.ts b/api/__tests__/country.test.ts index 898ddcb56..75f9fbef4 100644 --- a/api/__tests__/country.test.ts +++ b/api/__tests__/country.test.ts @@ -58,7 +58,7 @@ describe('POST /api/validate-country', () => { const name = nanoid() const countryValue = new LocationValue({ language, value: name }) await countryValue.save() - const country = new Location({ values: [countryValue.id] }) + const country = new Country({ values: [countryValue.id] }) await country.save() const payload: bookcarsTypes.ValidateCountryPayload = { language,