github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/ui-v2/tests/integration/components/intention-filter-test.js (about)

     1  import { moduleForComponent, test } from 'ember-qunit';
     2  import hbs from 'htmlbars-inline-precompile';
     3  
     4  moduleForComponent('intention-filter', 'Integration | Component | intention filter', {
     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`{{intention-filter}}`);
    13  
    14    assert.equal(
    15      this.$()
    16        .text()
    17        .trim(),
    18      'Search'
    19    );
    20  
    21    // // Template block usage:
    22    // this.render(hbs`
    23    //   {{#intention-filter}}
    24    //     template block text
    25    //   {{/intention-filter}}
    26    // `);
    27  
    28    // assert.equal(this.$().text().trim(), 'template block text');
    29  });