diff --git a/tests/index.js b/tests/index.js index dc0f2514..ce569bf8 100644 --- a/tests/index.js +++ b/tests/index.js @@ -254,4 +254,17 @@ describe('dialog', () => { const sentinelEnd = $('.rc-dialog-content + div')[0]; expect(document.activeElement).to.be(sentinelEnd); }); + + it('sets transform-origin when property mousePosition is set', () => { + const d = ReactDOM.render(( + +

the dialog

+
), container); + expect($('.rc-dialog').css('transform-origin')).to.not.be.empty(); + }); });