text: import { run } from '@ember/runloop';
  import Application from '@ember/application';
  
  import {
    renderComponentTimeString, renderOutletTimeString
  } from 'ember-perf-timeline/initializers/ember-perf-timeline';
  import { module, test } from 'qunit';
  import destroyApp from '../../helpers/destroy-app';
  
  module('Unit | Initializer | ember perf timeline', {
    beforeEach() {
      run(() => {
        this.application = Application.create();
        this.application.deferReadiness();
      });
    },
    afterEach() {
      destroyApp(this.application);
    }
  });
  
  test('renderComponentTimeString', function(assert) {
    const initialRenderPayload = {
      object: '<component>',
      initialRender: true,
    };
    const updateRenderPayload = {
      object: '<component>',
      initialRender: false,
    };
  
    assert.equal(
      renderComponentTimeString(initialRenderPayload),
      'EmberRender:<component> (Rendering initial)',
      'initial render string is correct'
    );
  
    assert.equal(
      renderComponentTimeString(updateRenderPayload),
      'EmberRender:<component> (Rendering update)',
      'update render string is correct'
    );
  });
  
  test('renderOutletTimeString', function(assert) {
    const initialRenderPayload = {
      object: 'application:main',
    };
  
    assert.equal(
      renderOutletTimeString(initialRenderPayload),
      'EmberRender:application:main (Rendering outlet)',
      'initial render string is correct'
    );
  });
  