1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing tests

This commit is contained in:
Patrik J. Braun 2019-03-03 21:36:20 +01:00
parent 5695f74e29
commit 9f1490bc6d
3 changed files with 3 additions and 5 deletions

View File

@ -23,5 +23,4 @@ export class PersonEntry implements PersonDTO {
public faces: FaceRegionEntry[]; public faces: FaceRegionEntry[];
readyThumbnail: boolean;
} }

View File

@ -2,7 +2,7 @@ export interface PersonDTO {
id: number; id: number;
name: string; name: string;
count: number; count: number;
readyThumbnail: boolean; readyThumbnail?: boolean;
isFavourite: boolean; isFavourite: boolean;
} }
@ -12,7 +12,6 @@ export class Person implements PersonDTO {
count: number; count: number;
id: number; id: number;
name: string; name: string;
readyThumbnail: boolean;
constructor() { constructor() {

View File

@ -14,8 +14,8 @@ describe('PersonManager', () => {
it('should upgrade keywords to person', async () => { it('should upgrade keywords to person', async () => {
const pm = new PersonManager(); const pm = new PersonManager();
pm.loadAll = () => Promise.resolve(); pm.loadAll = () => Promise.resolve();
pm.persons = [{name: 'Han Solo', id: 0, faces: [], count: 0}, pm.persons = [{name: 'Han Solo', id: 0, faces: [], count: 0, isFavourite: false},
{name: 'Anakin', id: 2, faces: [], count: 0}]; {name: 'Anakin', id: 2, faces: [], count: 0, isFavourite: false}];
const p_noFaces = <PhotoDTO>{ const p_noFaces = <PhotoDTO>{
metadata: { metadata: {