2024-03-20 20:32:04 +02:00
|
|
|
import { ActivityEntity } from 'src/infra/entities/activity.entity';
|
|
|
|
import { albumStub } from 'test/fixtures/album.stub';
|
|
|
|
import { assetStub } from 'test/fixtures/asset.stub';
|
|
|
|
import { authStub } from 'test/fixtures/auth.stub';
|
|
|
|
import { userStub } from 'test/fixtures/user.stub';
|
2023-11-01 05:13:34 +02:00
|
|
|
|
|
|
|
export const activityStub = {
|
|
|
|
oneComment: Object.freeze<ActivityEntity>({
|
|
|
|
id: 'activity-1',
|
|
|
|
comment: 'comment',
|
|
|
|
isLiked: false,
|
2023-12-10 06:34:12 +02:00
|
|
|
userId: authStub.admin.user.id,
|
2023-11-01 05:13:34 +02:00
|
|
|
user: userStub.admin,
|
|
|
|
assetId: assetStub.image.id,
|
|
|
|
asset: assetStub.image,
|
|
|
|
albumId: albumStub.oneAsset.id,
|
|
|
|
album: albumStub.oneAsset,
|
|
|
|
createdAt: new Date(),
|
|
|
|
updatedAt: new Date(),
|
|
|
|
}),
|
|
|
|
liked: Object.freeze<ActivityEntity>({
|
|
|
|
id: 'activity-2',
|
|
|
|
comment: null,
|
|
|
|
isLiked: true,
|
2023-12-10 06:34:12 +02:00
|
|
|
userId: authStub.admin.user.id,
|
2023-11-01 05:13:34 +02:00
|
|
|
user: userStub.admin,
|
|
|
|
assetId: assetStub.image.id,
|
|
|
|
asset: assetStub.image,
|
|
|
|
albumId: albumStub.oneAsset.id,
|
|
|
|
album: albumStub.oneAsset,
|
|
|
|
createdAt: new Date(),
|
|
|
|
updatedAt: new Date(),
|
|
|
|
}),
|
|
|
|
};
|