1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Merge pull request #463 from bpatrik/feature/improved-dto

fixing test
This commit is contained in:
Patrik J. Braun 2022-03-25 21:56:19 +01:00 committed by GitHub
commit 78344f4f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -24,7 +24,7 @@ describe('Typeorm integration', () => {
const tempDir = path.join(__dirname, '../../tmp'); const tempDir = path.join(__dirname, '../../tmp');
const setUpSqlDB = async () => { 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.type = DatabaseType.sqlite;
Config.Server.Database.dbFolder = tempDir; Config.Server.Database.dbFolder = tempDir;
@ -65,7 +65,6 @@ describe('Typeorm integration', () => {
sd.height = 200; sd.height = 200;
sd.width = 200; sd.width = 200;
const gps = new GPSMetadataEntity(); const gps = new GPSMetadataEntity();
gps.altitude = 1;
gps.latitude = 1; gps.latitude = 1;
gps.longitude = 1; gps.longitude = 1;
const pd = new PositionMetaDataEntity(); const pd = new PositionMetaDataEntity();

View File

@ -5,7 +5,6 @@ import {
PositionMetaDataEntity PositionMetaDataEntity
} from '../../../../../src/backend/model/database/sql/enitites/MediaEntity'; } from '../../../../../src/backend/model/database/sql/enitites/MediaEntity';
import {PhotoEntity, PhotoMetadataEntity} from '../../../../../src/backend/model/database/sql/enitites/PhotoEntity'; 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 {DirectoryEntity} from '../../../../../src/backend/model/database/sql/enitites/DirectoryEntity';
import {VideoEntity, VideoMetadataEntity} from '../../../../../src/backend/model/database/sql/enitites/VideoEntity'; import {VideoEntity, VideoMetadataEntity} from '../../../../../src/backend/model/database/sql/enitites/VideoEntity';
import {MediaDimension, MediaDTO} from '../../../../../src/common/entities/MediaDTO'; import {MediaDimension, MediaDTO} from '../../../../../src/common/entities/MediaDTO';
@ -50,7 +49,6 @@ export class TestHelper {
sd.height = 200; sd.height = 200;
sd.width = 200; sd.width = 200;
const gps = new GPSMetadataEntity(); const gps = new GPSMetadataEntity();
gps.altitude = 1;
gps.latitude = 1; gps.latitude = 1;
gps.longitude = 1; gps.longitude = 1;
const pd = new PositionMetaDataEntity(); const pd = new PositionMetaDataEntity();