import { PerformanceReviewUserSC } from '../../../../src/api/modules/performanceReviews/presentation/serializationClasses/performanceReviewUserSC';
import { fakePositiveInteger } from '../../../common/common';
import { checkPerformanceReviewUserSerialized, generateRandomPerformanceReviewUser } from '../common';

describe('PerformanceReviewUserSC', () => {
    it('should serialize review review user', () => {
        const reviewUser = generateRandomPerformanceReviewUser(fakePositiveInteger());
        const reviewUserSerialized = new PerformanceReviewUserSC().serialize(reviewUser);

        expect(reviewUserSerialized).not.toBeNull();

        checkPerformanceReviewUserSerialized(reviewUser, reviewUserSerialized);
    });
});
