diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx index ca80c4bd..f67457ec 100644 --- a/client/components/Nav.jsx +++ b/client/components/Nav.jsx @@ -663,7 +663,9 @@ Nav.propTypes = { setAllAccessibleOutput: PropTypes.func.isRequired, newFile: PropTypes.func.isRequired, newFolder: PropTypes.func.isRequired, - rootFile: PropTypes.func.isRequired + rootFile: PropTypes.shape({ + id: PropTypes.string.isRequired + }).isRequired }; Nav.defaultProps = { diff --git a/client/components/__test__/Nav.test.jsx b/client/components/__test__/Nav.test.jsx index a056ccb3..f9261cfc 100644 --- a/client/components/__test__/Nav.test.jsx +++ b/client/components/__test__/Nav.test.jsx @@ -39,7 +39,12 @@ describe('Nav', () => { }, startSketch: jest.fn(), stopSketch: jest.fn(), - setAllAccessibleOutput: jest.fn() + setAllAccessibleOutput: jest.fn(), + showToast: jest.fn(), + setToastText: jest.fn(), + rootFile: { + id: 'root-file' + } }; const getWrapper = () => shallow();