Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Test 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Apr 15, 2019
1 parent 1603974 commit b693697
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/mentionui.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,6 @@ describe( 'MentionUI', () => {
stopPropagation: sinon.spy()
};

let maxScroll;

return waitForDebounce()
.then( () => {
expect( panelView.isVisible ).to.be.true;
Expand Down Expand Up @@ -391,7 +389,6 @@ describe( 'MentionUI', () => {
console.log( '2 .... ' );
console.log( mentionsView.element.scrollTop );
expect( mentionsView.element.scrollTop ).to.be.not.equal( 0 );
maxScroll = mentionsView.element.scrollTop;

fireKeyDownEvent( arrowDownEvtData );
} )
Expand All @@ -400,7 +397,7 @@ describe( 'MentionUI', () => {
expectChildViewsIsOnState( [ true, false, false, false, false, false, false, false, false, false ] );
console.log( '3 .... ' );
console.log( mentionsView.element.scrollTop );
expect( mentionsView.element.scrollTop ).to.be.less.then( maxScroll );
expect( mentionsView.element.scrollTop ).to.be.within( 0, 50 );
} );
} );
} );
Expand Down

0 comments on commit b693697

Please sign in to comment.