File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,12 @@ import Table, { type Reference } from '../src';
5
5
6
6
describe ( 'Table.Ref' , ( ) => {
7
7
let scrollParam : any = null ;
8
- let scrollIntoViewElement : HTMLElement = null ;
9
8
10
9
beforeAll ( ( ) => {
11
10
spyElementPrototypes ( HTMLElement , {
12
11
scrollTo : ( _ : any , param : any ) => {
13
12
scrollParam = param ;
14
13
} ,
15
- scrollIntoView ( ) {
16
- // eslint-disable-next-line @typescript-eslint/no-this-alias
17
- scrollIntoViewElement = this ;
18
- } ,
19
14
} ) ;
20
15
} ) ;
21
16
@@ -49,17 +44,5 @@ describe('Table.Ref', () => {
49
44
} ) ;
50
45
51
46
expect ( scrollParam . top ) . toEqual ( 903 ) ;
52
-
53
- // Scroll index
54
- ref . current . scrollTo ( {
55
- index : 0 ,
56
- } ) ;
57
- expect ( scrollIntoViewElement . textContent ) . toEqual ( 'light' ) ;
58
-
59
- // Scroll key
60
- ref . current . scrollTo ( {
61
- key : 'bamboo' ,
62
- } ) ;
63
- expect ( scrollIntoViewElement . textContent ) . toEqual ( 'bamboo' ) ;
64
47
} ) ;
65
48
} ) ;
You can’t perform that action at this time.
0 commit comments