"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tableCompactCollapseHelper_data_1 = require("./data/tableCompactCollapseHelper.data");
var tableCompactCollapseHelpers_1 = require("./tableCompactCollapseHelpers");
var rowValue = (0, tableCompactCollapseHelper_data_1.getRowValueData)();
describe('applyCompactValuesCountConstraint tests', function () {
    it('should not update row value if maxValuesCount is Infinity', function () {
        var maxValuesCount = Infinity;
        expect((0, tableCompactCollapseHelpers_1.applyCompactValuesCountConstraint)(maxValuesCount)(rowValue)).toEqual(rowValue);
    });
    it('should correctly apply constraints for maxValuesCount 1', function () {
        var maxValuesCount = 1;
        expect((0, tableCompactCollapseHelpers_1.applyCompactValuesCountConstraint)(maxValuesCount)(rowValue)).toEqual((0, tableCompactCollapseHelper_data_1.getRowValueWithConstraintsDataForMVC1)());
    });
    it('should correctly apply constraints for maxValuesCount 2', function () {
        var maxValuesCount = 2;
        expect((0, tableCompactCollapseHelpers_1.applyCompactValuesCountConstraint)(maxValuesCount)(rowValue)).toEqual((0, tableCompactCollapseHelper_data_1.getRowValueWithConstraintsDataForMVC2)());
    });
    it('should correctly apply constraints for maxValuesCount 3', function () {
        var maxValuesCount = 3;
        expect((0, tableCompactCollapseHelpers_1.applyCompactValuesCountConstraint)(maxValuesCount)(rowValue)).toEqual((0, tableCompactCollapseHelper_data_1.getRowValueWithConstraintsDataForMVC3)());
    });
    it('should correctly apply constraints for maxValuesCount 6', function () {
        var maxValuesCount = 6;
        expect((0, tableCompactCollapseHelpers_1.applyCompactValuesCountConstraint)(maxValuesCount)(rowValue)).toEqual((0, tableCompactCollapseHelper_data_1.getRowValueWithConstraintsDataForMVC6)());
    });
});
