import {
  moduleForComponent,
  test
} from 'ember-qunit';

moduleForComponent('nav-bar', {});

test('it renders', function(assert) {
  assert.expect(2);

  // creates the component instance
  var component = this.subject();
  assert.equal(component._state, 'preRender');

  // renders the component to the page
  this.render();
  assert.equal(component._state, 'inDOM');

  
});

import {
  moduleForComponent,
  test
} from 'ember-qunit';

moduleForComponent('nav-bar', {});

test('it renders', function(assert) {
  assert.expect(3);

  var component = this.subject();
  assert.equal(component._state, 'preRender');

  this.render();
  assert.equal(component._state, 'inDOM');

  assert.equal(this.$().find('a').length, 2);

});

Test for links in nav bar component