From 9b71674ef76aa9067079127ac3a63d6019009378 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 25 Mar 2022 21:55:38 +0100 Subject: [PATCH] fixing test --- test/backend/integration/model/sql/typeorm.ts | 3 +-- test/backend/unit/model/sql/TestHelper.ts | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/test/backend/integration/model/sql/typeorm.ts b/test/backend/integration/model/sql/typeorm.ts index 7f665f9e..f2620953 100644 --- a/test/backend/integration/model/sql/typeorm.ts +++ b/test/backend/integration/model/sql/typeorm.ts @@ -24,7 +24,7 @@ describe('Typeorm integration', () => { const tempDir = path.join(__dirname, '../../tmp'); const setUpSqlDB = async () => { - await fs.promises.rm(tempDir, {recursive: true, force:true}); + await fs.promises.rm(tempDir, {recursive: true, force: true}); Config.Server.Database.type = DatabaseType.sqlite; Config.Server.Database.dbFolder = tempDir; @@ -65,7 +65,6 @@ describe('Typeorm integration', () => { sd.height = 200; sd.width = 200; const gps = new GPSMetadataEntity(); - gps.altitude = 1; gps.latitude = 1; gps.longitude = 1; const pd = new PositionMetaDataEntity(); diff --git a/test/backend/unit/model/sql/TestHelper.ts b/test/backend/unit/model/sql/TestHelper.ts index 91aacff7..c16bb1a9 100644 --- a/test/backend/unit/model/sql/TestHelper.ts +++ b/test/backend/unit/model/sql/TestHelper.ts @@ -5,7 +5,6 @@ import { PositionMetaDataEntity } from '../../../../../src/backend/model/database/sql/enitites/MediaEntity'; import {PhotoEntity, PhotoMetadataEntity} from '../../../../../src/backend/model/database/sql/enitites/PhotoEntity'; -import {OrientationTypes} from 'ts-exif-parser'; import {DirectoryEntity} from '../../../../../src/backend/model/database/sql/enitites/DirectoryEntity'; import {VideoEntity, VideoMetadataEntity} from '../../../../../src/backend/model/database/sql/enitites/VideoEntity'; import {MediaDimension, MediaDTO} from '../../../../../src/common/entities/MediaDTO'; @@ -50,7 +49,6 @@ export class TestHelper { sd.height = 200; sd.width = 200; const gps = new GPSMetadataEntity(); - gps.altitude = 1; gps.latitude = 1; gps.longitude = 1; const pd = new PositionMetaDataEntity();