mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-23 01:27:14 +02:00
type fix
This commit is contained in:
parent
577a3ea480
commit
d7a9d1559a
@ -62,7 +62,7 @@ describe('GalleryGridComponent', () => {
|
|||||||
setGridPhotoQL: () => {
|
setGridPhotoQL: () => {
|
||||||
// mock
|
// mock
|
||||||
}
|
}
|
||||||
} as unknown;
|
} as never;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ describe('GalleryGridComponent', () => {
|
|||||||
const phs: PhotoDTO[] = [];
|
const phs: PhotoDTO[] = [];
|
||||||
const gPhs: GridMedia[] = [];
|
const gPhs: GridMedia[] = [];
|
||||||
for (let i = 0; i < 10; ++i) {
|
for (let i = 0; i < 10; ++i) {
|
||||||
const p = {name: i + '.jpg', directory: {name: 'd' + i, path: 'p' + i}} as unknown;
|
const p = {name: i + '.jpg', directory: {name: 'd' + i, path: 'p' + i}} as PhotoDTO;
|
||||||
phs.push(p);
|
phs.push(p);
|
||||||
gPhs.push(new GridMedia(p, 1, 1, i));
|
gPhs.push(new GridMedia(p, 1, 1, i));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user