fixes #1189, fixes nav tests so that the app will actually redeploy

This commit is contained in:
Cassie Tarakajian 2019-10-08 17:46:11 -04:00
parent 560659e76a
commit f1bcccb1b2
2 changed files with 9 additions and 2 deletions

View file

@ -663,7 +663,9 @@ Nav.propTypes = {
setAllAccessibleOutput: PropTypes.func.isRequired, setAllAccessibleOutput: PropTypes.func.isRequired,
newFile: PropTypes.func.isRequired, newFile: PropTypes.func.isRequired,
newFolder: PropTypes.func.isRequired, newFolder: PropTypes.func.isRequired,
rootFile: PropTypes.func.isRequired rootFile: PropTypes.shape({
id: PropTypes.string.isRequired
}).isRequired
}; };
Nav.defaultProps = { Nav.defaultProps = {

View file

@ -39,7 +39,12 @@ describe('Nav', () => {
}, },
startSketch: jest.fn(), startSketch: jest.fn(),
stopSketch: 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} />); const getWrapper = () => shallow(<NavComponent {...props} />);