message: Tested navigating history
diff: @@ -29,6 +29,7 @@ describe('Navigation', function () {
  function test(){
  it('should populate context', function() {
  assert.equal(stateNavigator.stateContext.state, stateNavigator.states['s']);
  + assert.equal(stateNavigator.stateContext.history, false);
  assert.equal(stateNavigator.stateContext.crumbs.length, 0);
  });
  }
  @@ -97,6 +98,58 @@ describe('Navigation', function () {
  }
  });
  + describe('History State', function() {
  + var stateNavigator: StateNavigator;
  + beforeEach(function() {
  + stateNavigator = new StateNavigator([
  + { key: 's', route: 'r' }
  + ]);
  + });
  +
  + describe('Navigate Link', function() {
  + beforeEach(function() {
  + var link = stateNavigator.getNavigationLink('s');
  + stateNavigator.navigateLink(link, undefined, true);
  + });
  + test();
  + });
  +
  + function test(){
  + it('should populate context', function() {
  + assert.equal(stateNavigator.stateContext.state, stateNavigator.states['s']);
  + assert.equal(stateNavigator.stateContext.history, true);
  + assert.equal(stateNavigator.stateContext.crumbs.length, 0);
  + });
  + }
  + });
  +
  + describe('Not History State', function() {
  + var stateNavigator: StateNavigator;
  + beforeEach(function() {
  + stateNavigator = new StateNavigator([
  + { key: 's', route: 'r' }
  + ]);
  + });
  +
  + describe('Navigate Link', function() {
  + beforeEach(function() {
  + var link = stateNavigator.getNavigationLink('s');
  + stateNavigator.navigateLink(link, undefined, true);
  + link = stateNavigator.getNavigationLink('s');
  + stateNavigator.navigateLink(link);
  + });
  + test();
  + });
  +
  + function test(){
  + it('should populate context', function() {
  + assert.equal(stateNavigator.stateContext.state, stateNavigator.states['s']);
  + assert.equal(stateNavigator.stateContext.history, false);
  + assert.equal(stateNavigator.stateContext.crumbs.length, 0);
  + });
  + }
  + });
  +
  describe('Invalid State', function() {
  var stateNavigator: StateNavigator;
  beforeEach(function() {
  