Skip to content

Commit

Permalink
Reproduce issue with empty query string.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Mar 10, 2015
1 parent ea398cc commit 57860c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/__tests__/Router-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,15 @@ describe('Router', function () {
});
});

it('renders with empty query string', function (done) {
var routes = <Route handler={Foo} path='/'/>;
Router.run(routes, '/?', function (Handler, state) {
var html = React.renderToString(<Handler />);
expect(html).toMatch(/Foo/);
done();
});
});

it('executes transition hooks when only the query changes', function (done) {
var fromKnifeCalled = false;
var fromSpoonCalled = false;
Expand Down

0 comments on commit 57860c6

Please sign in to comment.