var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import React from 'react';
import { BlobRenderer } from './BlobRenderer';
import { fireEvent, render, screen } from '@testing-library/react';
describe('BlobRenderer test', function () {
    var defaultProps = {
        value: 'testValue',
        className: 'columnClassName'
    };
    var setUp = function (props, wrapper) {
        if (props === void 0) { props = defaultProps; }
        return __assign({}, render(React.createElement(BlobRenderer, __assign({}, props)), { wrapper: wrapper }));
    };
    it('should render value', function () {
        setUp();
        expect(screen.getByText(defaultProps.value)).toBeInTheDocument();
        expect(screen.getByText(defaultProps.value)).toHaveClass('columnClassName');
    });
    it('should stop propagation scroll event', function () {
        var scrollHandler = jest.fn();
        var scrollTestWrapper = function (_a) {
            var children = _a.children;
            return React.createElement("div", { onScroll: scrollHandler }, children);
        };
        setUp(defaultProps, scrollTestWrapper);
        fireEvent.scroll(screen.getByText(defaultProps.value), { target: { scrollY: 100 } });
        expect(scrollHandler).not.toHaveBeenCalled();
    });
});
