From 57860c69cc5f8f97c2d05f86ca6cd9d39fa48bdb Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Tue, 10 Mar 2015 12:50:31 +0000 Subject: [PATCH] Reproduce issue with empty query string. --- modules/__tests__/Router-test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/__tests__/Router-test.js b/modules/__tests__/Router-test.js index 4465af305b..daac5f55bb 100644 --- a/modules/__tests__/Router-test.js +++ b/modules/__tests__/Router-test.js @@ -648,6 +648,15 @@ describe('Router', function () { }); }); + it('renders with empty query string', function (done) { + var routes = ; + Router.run(routes, '/?', function (Handler, state) { + var html = React.renderToString(); + expect(html).toMatch(/Foo/); + done(); + }); + }); + it('executes transition hooks when only the query changes', function (done) { var fromKnifeCalled = false; var fromSpoonCalled = false;