Skip to content

Commit 57860c6

Browse files
committed
Reproduce issue with empty query string.
1 parent ea398cc commit 57860c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/__tests__/Router-test.js

+9
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,15 @@ describe('Router', function () {
648648
});
649649
});
650650

651+
it('renders with empty query string', function (done) {
652+
var routes = <Route handler={Foo} path='/'/>;
653+
Router.run(routes, '/?', function (Handler, state) {
654+
var html = React.renderToString(<Handler />);
655+
expect(html).toMatch(/Foo/);
656+
done();
657+
});
658+
});
659+
651660
it('executes transition hooks when only the query changes', function (done) {
652661
var fromKnifeCalled = false;
653662
var fromSpoonCalled = false;

0 commit comments

Comments
 (0)