text: import { module, test } from 'qunit';
  import { setupRenderingTest } from 'ember-qunit';
  import { render } from '@ember/test-helpers';
  import { hbs } from 'ember-cli-htmlbars';
  import Service from '@ember/service';
  
  // Stub out session
  
  const sessionStub = Service.extend({
    user: { isAdmin: true, isVC: true }, // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
    userId: 0
  });
  
  module('Integration | Component | dashboard-ranger', function(hooks) {
    setupRenderingTest(hooks);
  
    hooks.beforeEach(function () {
      this.owner.register('service:session', sessionStub);
    });
  
    test('it renders', async function(assert) {
      const person = server.create('person', { roles: [  ]});
  
      this.sessionService = this.owner.lookup('service:session');
      this.set('sessionService.userId', person.id);
      this.set('person', person);
      this.set('milestones', { training: { status: 'pending' }, alpha_shift: { status: 'pending' }});
      this.set('photo', { });
      await render(hbs`<DashboardRanger @milestones={{this.milestones}} @person={{this.person}} @photo={{this.photo}} />`);
  
      assert.dom('.mugshot').exists();
    });
  });
  