Merge pull request #1190 from processing/nav-tests

fixes #1189, fixes nav tests so that the app will actually redeploy
This commit is contained in:
Cassie Tarakajian 2019-10-08 17:47:14 -04:00 committed by GitHub
commit cd9b7f7b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -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 = {

View file

@ -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(<NavComponent {...props} />);