Skip to content

Commit

Permalink
style: satisfy Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzyma committed Aug 24, 2016
1 parent 44cf2e0 commit e940451
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ describe('rc-slider', function test() {
const values = [];
const handler = (e) => {
values.push(e);
}
};

ReactDOM.render(<Slider onChange={handler}/>, div);
const handle = div.querySelector('.rc-slider-handle');

const slider = ReactDOM.render(<Slider onChange={handler}/>, div);
const handle = div.querySelector('.rc-slider-handle')

const down = document.createEvent('MouseEvent');
down.initEvent('mousedown', true, true);

Expand All @@ -225,7 +225,7 @@ describe('rc-slider', function test() {

const up = document.createEvent('MouseEvent');
up.initEvent('mouseup', true, true);

handle.dispatchEvent(down);
handle.dispatchEvent(move);
handle.dispatchEvent(up);
Expand Down

0 comments on commit e940451

Please sign in to comment.