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

     1  import { moduleForComponent, skip } from 'ember-qunit';
     2  import hbs from 'htmlbars-inline-precompile';
     3  
     4  moduleForComponent('healthchecked-resource', 'Integration | Component | healthchecked resource', {
     5    integration: true,
     6  });
     7  
     8  skip('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`{{healthchecked-resource}}`);
    13  
    14    assert.ok(
    15      this.$()
    16        .text()
    17        .trim()
    18        .indexOf('other passing checks') !== -1
    19    );
    20  
    21    // Template block usage:
    22    this.render(hbs`
    23      {{#healthchecked-resource}}{{/healthchecked-resource}}
    24    `);
    25  
    26    assert.ok(
    27      this.$()
    28        .text()
    29        .trim()
    30        .indexOf('other passing checks') !== -1
    31    );
    32  });