Skip to content

Commit

Permalink
Fix lint error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Dec 8, 2020
1 parent 7ac2e75 commit 13b9391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/tabs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ describe('tabs', () => {
let pixels = 0;
Object.defineProperty(scroll, orientation == 'horizontal' ? 'scrollLeft' : 'scrollTop', {
get: () => pixels,
set: (v) => (pixels = v)
set: (v) => {
pixels = v;
}
});

// Simulate over-scrolling
Expand Down

0 comments on commit 13b9391

Please sign in to comment.