mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
fixing tests
This commit is contained in:
parent
5695f74e29
commit
9f1490bc6d
@ -23,5 +23,4 @@ export class PersonEntry implements PersonDTO {
|
||||
public faces: FaceRegionEntry[];
|
||||
|
||||
|
||||
readyThumbnail: boolean;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ export interface PersonDTO {
|
||||
id: number;
|
||||
name: string;
|
||||
count: number;
|
||||
readyThumbnail: boolean;
|
||||
readyThumbnail?: boolean;
|
||||
isFavourite: boolean;
|
||||
}
|
||||
|
||||
@ -12,7 +12,6 @@ export class Person implements PersonDTO {
|
||||
count: number;
|
||||
id: number;
|
||||
name: string;
|
||||
readyThumbnail: boolean;
|
||||
|
||||
|
||||
constructor() {
|
||||
|
@ -14,8 +14,8 @@ describe('PersonManager', () => {
|
||||
it('should upgrade keywords to person', async () => {
|
||||
const pm = new PersonManager();
|
||||
pm.loadAll = () => Promise.resolve();
|
||||
pm.persons = [{name: 'Han Solo', id: 0, faces: [], count: 0},
|
||||
{name: 'Anakin', id: 2, faces: [], count: 0}];
|
||||
pm.persons = [{name: 'Han Solo', id: 0, faces: [], count: 0, isFavourite: false},
|
||||
{name: 'Anakin', id: 2, faces: [], count: 0, isFavourite: false}];
|
||||
|
||||
const p_noFaces = <PhotoDTO>{
|
||||
metadata: {
|
||||
|
Loading…
Reference in New Issue
Block a user