2024-08-15 06:57:01 -04:00
|
|
|
import { MemoryType } from 'src/enum';
|
2024-04-02 10:23:17 -04:00
|
|
|
import { assetStub } from 'test/fixtures/asset.stub';
|
|
|
|
import { userStub } from 'test/fixtures/user.stub';
|
|
|
|
|
|
|
|
export const memoryStub = {
|
2025-01-22 16:39:13 -05:00
|
|
|
empty: {
|
2024-04-02 10:23:17 -04:00
|
|
|
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: [],
|
2025-01-22 16:39:13 -05:00
|
|
|
deletedAt: null,
|
|
|
|
seenAt: null,
|
|
|
|
} as unknown as any,
|
|
|
|
memory1: {
|
2024-04-02 10:23:17 -04:00
|
|
|
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],
|
2025-01-22 16:39:13 -05:00
|
|
|
deletedAt: null,
|
|
|
|
seenAt: null,
|
|
|
|
} as unknown as any,
|
2024-04-02 10:23:17 -04:00
|
|
|
};
|