import { PerformanceReviewNineBoxPoint } from '../../../../src/api/modules/performanceReviews/business/models/PerformanceReviewNineBoxPoint';
import { PerformanceReviewNineBoxPointSC } from '../../../../src/api/modules/performanceReviews/presentation/serializationClasses/performanceReviewNineBoxPointSC';
import { checkNineBoxPointSerialized, generateRandomNineBoxPoint } from '../common';

describe('PerformanceReviewNineBoxPointSC', () => {
    let nineBoxPoint: PerformanceReviewNineBoxPoint;

    beforeEach(() => {
        nineBoxPoint = generateRandomNineBoxPoint();
    });

    it('should serialize nine box point', () => {
        const nineBoxPointSerialized = new PerformanceReviewNineBoxPointSC().serialize(nineBoxPoint);

        expect(nineBoxPointSerialized).not.toBeNull();

        checkNineBoxPointSerialized(nineBoxPoint, nineBoxPointSerialized);
    });
});
