File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -663,7 +663,9 @@ Nav.propTypes = {
663
663
setAllAccessibleOutput : PropTypes . func . isRequired ,
664
664
newFile : PropTypes . func . isRequired ,
665
665
newFolder : PropTypes . func . isRequired ,
666
- rootFile : PropTypes . func . isRequired
666
+ rootFile : PropTypes . shape ( {
667
+ id : PropTypes . string . isRequired
668
+ } ) . isRequired
667
669
} ;
668
670
669
671
Nav . defaultProps = {
Original file line number Diff line number Diff line change @@ -39,7 +39,12 @@ describe('Nav', () => {
39
39
} ,
40
40
startSketch : jest . fn ( ) ,
41
41
stopSketch : jest . fn ( ) ,
42
- setAllAccessibleOutput : jest . fn ( )
42
+ setAllAccessibleOutput : jest . fn ( ) ,
43
+ showToast : jest . fn ( ) ,
44
+ setToastText : jest . fn ( ) ,
45
+ rootFile : {
46
+ id : 'root-file'
47
+ }
43
48
} ;
44
49
const getWrapper = ( ) => shallow ( < NavComponent { ...props } /> ) ;
45
50
You can’t perform that action at this time.
0 commit comments