message: Tested link updates async when deferred
diff: @@ -1841,7 +1841,9 @@ describe('NavigationLinkTest', function () {
  var container = document.createElement('div');
  ReactDOM.render(
  <NavigationHandler stateNavigator={stateNavigator}>
  - <NavigationLink stateKey="s" defer={true}>
  + <NavigationLink
  + stateKey="s"
  + defer={true}>
  link text
  </NavigationLink>
  </NavigationHandler>,
  @@ -1899,4 +1901,40 @@ describe('NavigationLinkTest', function () {
  })
  })
  });
  +
  + describe('Include Current Data Deferred Navigation Link', function () {
  + it('should update async', function(done){
  + var stateNavigator = new StateNavigator([
  + { key: 's', route: 'r' }
  + ]);
  + stateNavigator.navigate('s', {x: 'a'});
  + var container = document.createElement('div');
  + ReactDOM.render(
  + <NavigationHandler stateNavigator={stateNavigator}>
  + <NavigationLink
  + stateKey="s"
  + navigationData={{y: 'b'}}
  + defer={true}>
  + link text
  + </NavigationLink>
  + <NavigationLink
  + stateKey="s"
  + navigationData={{z: 'c'}}
  + includeCurrentData={true}>
  + link text
  + </NavigationLink>
  + </NavigationHandler>,
  + container
  + );
  + var firstLink = container.querySelectorAll<HTMLAnchorElement>('a')[0];
  + var secondLink = container.querySelectorAll<HTMLAnchorElement>('a')[1];
  + assert.equal(secondLink.hash, '#/r?x=a&z=c');
  + Simulate.click(firstLink);
  + assert.equal(secondLink.hash, '#/r?x=a&z=c');
  + stateNavigator.onNavigate(() => {
  + assert.equal(secondLink.hash, '#/r?y=b&z=c');
  + done();
  + })
  + })
  + });
  });
  