import { getCanvasMousePos } from './utils';
describe('getCanvasMousePos behaviour', function () {
    it('should return real mouse position correctly', function () {
        var canvas = {
            getBoundingClientRect: function () { return ({
                left: 64,
                right: 888,
                top: 148,
                bottom: 1000
            }); },
            width: 772,
            height: 798
        };
        var mouseEvent = {
            clientX: 864,
            clientY: 547
        };
        expect(getCanvasMousePos(canvas, mouseEvent)).toEqual({ x: 749.5145631067961, y: 373.7112676056338 });
    });
});
