2024-03-20 23:02:51 +02:00
|
|
|
import { PartnerEntity } from 'src/entities/partner.entity';
|
2024-03-20 20:32:04 +02:00
|
|
|
import { userStub } from 'test/fixtures/user.stub';
|
2023-08-01 03:28:07 +02:00
|
|
|
|
|
|
|
export const partnerStub = {
|
|
|
|
adminToUser1: Object.freeze<PartnerEntity>({
|
|
|
|
createdAt: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
updatedAt: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
sharedById: userStub.admin.id,
|
|
|
|
sharedBy: userStub.admin,
|
|
|
|
sharedWith: userStub.user1,
|
|
|
|
sharedWithId: userStub.user1.id,
|
2023-11-11 23:06:19 +02:00
|
|
|
inTimeline: true,
|
2023-08-01 03:28:07 +02:00
|
|
|
}),
|
|
|
|
user1ToAdmin1: Object.freeze<PartnerEntity>({
|
|
|
|
createdAt: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
updatedAt: new Date('2023-02-23T05:06:29.716Z'),
|
|
|
|
sharedBy: userStub.user1,
|
|
|
|
sharedById: userStub.user1.id,
|
|
|
|
sharedWithId: userStub.admin.id,
|
|
|
|
sharedWith: userStub.admin,
|
2023-11-11 23:06:19 +02:00
|
|
|
inTimeline: true,
|
2023-08-01 03:28:07 +02:00
|
|
|
}),
|
|
|
|
};
|