mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
fixing test
This commit is contained in:
parent
47d864abe5
commit
9b71674ef7
@ -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