"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var entitiesTable_1 = require("./entitiesTable");
describe('height calculator tests', function () {
    it('should return height correctly when countAttributes more than 1', function () {
        expect((0, entitiesTable_1.getAttributeHeight)({ columnData: {}, cell: { values: [1, 2] } })).toBe(76);
    });
    it('should return height correctly when countAttributes is 0', function () {
        expect((0, entitiesTable_1.getAttributeHeight)({ columnData: {}, cell: { values: [] } })).toBe(48);
    });
    it('should return height correctly when attribute is Reference', function () {
        expect((0, entitiesTable_1.getAttributeHeight)({ columnData: { dataTypeDefinition: { type: 'Reference' } }, cell: { values: [{ entity: {} }] } })).toBe(45);
    });
    it('should return height correctly when attribute is Blob', function () {
        expect((0, entitiesTable_1.getAttributeHeight)({ columnData: { dataTypeDefinition: { type: 'Blob' } }, cell: { values: ['123'] } })).toBe(100);
    });
    it('should return height correctly when attribute is Image', function () {
        expect((0, entitiesTable_1.getAttributeHeight)({ columnData: { dataTypeDefinition: { type: 'Image' } }, cell: { values: ['uri/123'] } })).toBe(93);
    });
});
