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,