"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var react_2 = require("@testing-library/react");
var mdm_sdk_1 = require("@reltio/mdm-sdk");
var DefaultCellValueRenderer_1 = require("./DefaultCellValueRenderer");
describe('Default cell value renderer tests', function () {
    it('should render blob renderer if data type is "Blob"', function () {
        var columnData = {
            id: 'test',
            label: 'Test',
            dataTypeDefinition: { type: mdm_sdk_1.DataTypes.TYPE_BLOB }
        };
        (0, react_2.render)(react_1.default.createElement(DefaultCellValueRenderer_1.DefaultCellValueRenderer, { value: "test", columnData: columnData }));
        expect(react_2.screen.getByTestId('blob-renderer')).toHaveTextContent('test');
    });
    it('should render data type value if data type is not "Blob"', function () {
        var columnData = {
            id: 'test',
            label: 'Test',
            dataTypeDefinition: { type: mdm_sdk_1.DataTypes.TYPE_INT }
        };
        (0, react_2.render)(react_1.default.createElement(DefaultCellValueRenderer_1.DefaultCellValueRenderer, { value: 123, columnData: columnData }));
        expect(react_2.screen.getByTestId('default-renderer')).toHaveTextContent('123');
    });
});
