Skip to content

Commit f1bcccb

Browse files
committed
fixes #1189, fixes nav tests so that the app will actually redeploy
1 parent 560659e commit f1bcccb

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

client/components/Nav.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,9 @@ Nav.propTypes = {
663663
setAllAccessibleOutput: PropTypes.func.isRequired,
664664
newFile: PropTypes.func.isRequired,
665665
newFolder: PropTypes.func.isRequired,
666-
rootFile: PropTypes.func.isRequired
666+
rootFile: PropTypes.shape({
667+
id: PropTypes.string.isRequired
668+
}).isRequired
667669
};
668670

669671
Nav.defaultProps = {

client/components/__test__/Nav.test.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ describe('Nav', () => {
3939
},
4040
startSketch: jest.fn(),
4141
stopSketch: jest.fn(),
42-
setAllAccessibleOutput: jest.fn()
42+
setAllAccessibleOutput: jest.fn(),
43+
showToast: jest.fn(),
44+
setToastText: jest.fn(),
45+
rootFile: {
46+
id: 'root-file'
47+
}
4348
};
4449
const getWrapper = () => shallow(<NavComponent {...props} />);
4550

0 commit comments

Comments
 (0)