github.com/outbrain/consul@v1.4.5/ui-v2/tests/integration/components/healthcheck-status-test.js (about) 1 import { moduleForComponent, test } from 'ember-qunit'; 2 import hbs from 'htmlbars-inline-precompile'; 3 4 moduleForComponent('healthcheck-status', 'Integration | Component | healthcheck status', { 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`{{healthcheck-status}}`); 13 14 assert.notEqual( 15 this.$() 16 .text() 17 .trim() 18 .indexOf('Output'), 19 -1 20 ); 21 22 // Template block usage: 23 this.render(hbs` 24 {{#healthcheck-status}}{{/healthcheck-status}} 25 `); 26 27 assert.notEqual( 28 this.$() 29 .text() 30 .trim() 31 .indexOf('Output'), 32 -1 33 ); 34 });