mirror of
https://github.com/immich-app/immich.git
synced 2024-12-02 09:52:47 +02:00
32 lines
834 B
TypeScript
32 lines
834 B
TypeScript
import { MemoryEntity } from 'src/entities/memory.entity';
|
|
import { MemoryType } from 'src/enum';
|
|
import { assetStub } from 'test/fixtures/asset.stub';
|
|
import { userStub } from 'test/fixtures/user.stub';
|
|
|
|
export const memoryStub = {
|
|
empty: <MemoryEntity>{
|
|
id: 'memoryEmpty',
|
|
createdAt: new Date(),
|
|
updatedAt: new Date(),
|
|
memoryAt: new Date(2024),
|
|
ownerId: userStub.admin.id,
|
|
owner: userStub.admin,
|
|
type: MemoryType.ON_THIS_DAY,
|
|
data: { year: 2024 },
|
|
isSaved: false,
|
|
assets: [],
|
|
},
|
|
memory1: <MemoryEntity>{
|
|
id: 'memory1',
|
|
createdAt: new Date(),
|
|
updatedAt: new Date(),
|
|
memoryAt: new Date(2024),
|
|
ownerId: userStub.admin.id,
|
|
owner: userStub.admin,
|
|
type: MemoryType.ON_THIS_DAY,
|
|
data: { year: 2024 },
|
|
isSaved: false,
|
|
assets: [assetStub.image1],
|
|
},
|
|
};
|