From 59e20253cbc8760db1fc7a8005c2c95e4e793002 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 26 Oct 2018 18:54:35 +0200 Subject: [PATCH] Adding tests to improve code coverage. --- tests/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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(); + }); });