0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-28 00:59:18 -05:00
immich/server/test/fixtures/activity.stub.ts

41 lines
1 KiB
TypeScript
Raw Normal View History

2025-01-15 23:31:26 -05:00
import { ActivityItem } from 'src/types';
import { albumStub } from 'test/fixtures/album.stub';
import { assetStub } from 'test/fixtures/asset.stub';
export const activityStub = {
2025-01-15 23:31:26 -05:00
oneComment: Object.freeze<ActivityItem>({
id: 'activity-1',
comment: 'comment',
isLiked: false,
2025-01-15 23:31:26 -05:00
userId: 'admin_id',
user: {
id: 'admin_id',
name: 'admin',
email: 'admin@test.com',
profileImagePath: '',
profileChangedAt: new Date('2021-01-01'),
},
assetId: assetStub.image.id,
albumId: albumStub.oneAsset.id,
createdAt: new Date(),
updatedAt: new Date(),
}),
2025-01-15 23:31:26 -05:00
liked: Object.freeze<ActivityItem>({
id: 'activity-2',
comment: null,
isLiked: true,
2025-01-15 23:31:26 -05:00
userId: 'admin_id',
user: {
id: 'admin_id',
name: 'admin',
email: 'admin@test.com',
profileImagePath: '',
profileChangedAt: new Date('2021-01-01'),
},
assetId: assetStub.image.id,
albumId: albumStub.oneAsset.id,
createdAt: new Date(),
updatedAt: new Date(),
}),
};