Skip to content

Commit 451ca1b

Browse files
author
Emmanouil Konstantinidis
committed
Mock get path, coverage 100%
1 parent 34295f4 commit 451ca1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/js/__tests__/__mocks__/react-router.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ Router.Link = React.createClass({
2323
});
2424

2525
Router.State = {
26-
getPath: function () {},
26+
getPath: function () {
27+
return '/settings';
28+
},
2729
getCurrentPath: function () {}
2830
};
2931

0 commit comments

Comments
 (0)