2025-01-15 23:31:26 -05:00
|
|
|
import { ActivityItem } from 'src/types';
|
2024-03-20 19:32:04 +01:00
|
|
|
import { albumStub } from 'test/fixtures/album.stub';
|
|
|
|
import { assetStub } from 'test/fixtures/asset.stub';
|
2023-11-01 04:13:34 +01:00
|
|
|
|
|
|
|
export const activityStub = {
|
2025-01-15 23:31:26 -05:00
|
|
|
oneComment: Object.freeze<ActivityItem>({
|
2023-11-01 04:13:34 +01:00
|
|
|
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'),
|
|
|
|
},
|
2023-11-01 04:13:34 +01:00
|
|
|
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>({
|
2023-11-01 04:13:34 +01:00
|
|
|
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'),
|
|
|
|
},
|
2023-11-01 04:13:34 +01:00
|
|
|
assetId: assetStub.image.id,
|
|
|
|
albumId: albumStub.oneAsset.id,
|
|
|
|
createdAt: new Date(),
|
|
|
|
updatedAt: new Date(),
|
|
|
|
}),
|
|
|
|
};
|