diff --git a/api/coverage/cobertura-coverage.xml b/api/coverage/cobertura-coverage.xml index da513bcb..d3aeb259 100644 --- a/api/coverage/cobertura-coverage.xml +++ b/api/coverage/cobertura-coverage.xml @@ -1,6 +1,6 @@ - + C:\dev\movinin\src\api @@ -171,8 +171,8 @@ - - + + @@ -359,9 +359,9 @@ - + - + @@ -453,8 +453,8 @@ - - + + diff --git a/api/tests/property.test.ts b/api/tests/property.test.ts index b1dddc4b..eb2405a9 100644 --- a/api/tests/property.test.ts +++ b/api/tests/property.test.ts @@ -313,6 +313,8 @@ describe('PUT /api/update-property', () => { expect(res.statusCode).toBe(204) property = await Property.findById(PROPERTY_ID) + property.images = [...property.images, `${uuid()}.jpg`] + await property.save() property.images = [] await property.save() if (!await helper.exists(mainImage)) {