mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-23 01:27:14 +02:00
commit
78344f4f7a
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user