@@ -26,11 +26,11 @@ describe('Navigation', () => {
26
26
const [ prev2 , prev , drillUp , next , next2 ] = children ;
27
27
28
28
expect ( children ) . toHaveLength ( 5 ) ;
29
- expect ( prev2 . getAttribute ( 'type' ) ) . toBe ( 'button' ) ;
30
- expect ( prev . getAttribute ( 'type' ) ) . toBe ( 'button' ) ;
31
- expect ( drillUp . getAttribute ( 'type' ) ) . toBe ( 'button' ) ;
32
- expect ( next . getAttribute ( 'type' ) ) . toBe ( 'button' ) ;
33
- expect ( next2 . getAttribute ( 'type' ) ) . toBe ( 'button' ) ;
29
+ expect ( prev2 ) . toHaveAttribute ( 'type' , 'button' ) ;
30
+ expect ( prev ) . toHaveAttribute ( 'type' , 'button' ) ;
31
+ expect ( drillUp ) . toHaveAttribute ( 'type' , 'button' ) ;
32
+ expect ( next ) . toHaveAttribute ( 'type' , 'button' ) ;
33
+ expect ( next2 ) . toHaveAttribute ( 'type' , 'button' ) ;
34
34
} ) ;
35
35
36
36
it ( 'renders prev, drill up, next and buttons only for century view' , ( ) => {
@@ -41,9 +41,9 @@ describe('Navigation', () => {
41
41
const [ prev , drillUp , next ] = children ;
42
42
43
43
expect ( children ) . toHaveLength ( 3 ) ;
44
- expect ( prev . getAttribute ( 'type' ) ) . toBe ( 'button' ) ;
45
- expect ( drillUp . getAttribute ( 'type' ) ) . toBe ( 'button' ) ;
46
- expect ( next . getAttribute ( 'type' ) ) . toBe ( 'button' ) ;
44
+ expect ( prev ) . toHaveAttribute ( 'type' , 'button' ) ;
45
+ expect ( drillUp ) . toHaveAttribute ( 'type' , 'button' ) ;
46
+ expect ( next ) . toHaveAttribute ( 'type' , 'button' ) ;
47
47
} ) ;
48
48
49
49
it ( 'displays proper title for month view' , ( ) => {
0 commit comments