Skip to content

Commit 2ea1c40

Browse files
author
Emmanouil Konstantinidis
committed
Mock Router.State
1 parent 260f0b2 commit 2ea1c40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@ Router.Link = React.createClass({
2222
}
2323
});
2424

25+
Router.State = {
26+
getPath: function () {},
27+
getCurrentPath: function () {}
28+
};
29+
2530
module.exports = Router;

0 commit comments

Comments
 (0)