github.com/kjdelisle/consul@v1.4.5/ui-v2/tests/integration/components/tomography-graph-test.js (about)

     1  import { moduleForComponent, test } from 'ember-qunit';
     2  import hbs from 'htmlbars-inline-precompile';
     3  
     4  moduleForComponent('tomography-graph', 'Integration | Component | tomography graph', {
     5    integration: true
     6  });
     7  
     8  test('it renders', function(assert) {
     9    // Set any properties with this.set('myProperty', 'value');
    10    // Handle any actions with this.on('myAction', function(val) { ... });
    11  
    12    this.render(hbs`{{tomography-graph}}`);
    13  
    14    assert.ok(this.$().text().trim().indexOf('ms') !== -1);
    15  
    16    // Template block usage:
    17    this.render(hbs`
    18      {{#tomography-graph}}{{/tomography-graph}}
    19    `);
    20  
    21    assert.ok(this.$().text().trim().indexOf('ms') !== -1);
    22  });