fixes #1189, fixes nav tests so that the app will actually redeploy
This commit is contained in:
parent
560659e76a
commit
f1bcccb1b2
2 changed files with 9 additions and 2 deletions
|
@ -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 = {
|
||||||
|
|
|
@ -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} />);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue