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:
commit
cd9b7f7b56
2 changed files with 9 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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} />);
|
||||
|
||||
|
|
Loading…
Reference in a new issue