github.com/outbrain/consul@v1.4.5/ui-v2/tests/integration/components/action-group-test.js (about) 1 import { moduleForComponent, test } from 'ember-qunit'; 2 import hbs from 'htmlbars-inline-precompile'; 3 4 moduleForComponent('action-group', 'Integration | Component | action group', { 5 integration: true, 6 }); 7 8 test("it doesn't render anything when used inline", function(assert) { 9 this.render(hbs`{{action-group}}`); 10 11 assert.equal( 12 this.$() 13 .text() 14 .trim(), 15 '' 16 ); 17 }); 18 test('it renders', function(assert) { 19 // Set any properties with this.set('myProperty', 'value'); 20 // Handle any actions with this.on('myAction', function(val) { ... }); 21 22 // this.render(hbs`{{action-group}}`); 23 24 // assert.equal( 25 // this.$() 26 // .text() 27 // .trim(), 28 // '' 29 // ); 30 31 // Template block usage: 32 this.render(hbs` 33 {{#action-group}}{{/action-group}} 34 `); 35 36 assert.notEqual( 37 this.$() 38 .text() 39 .trim() 40 .indexOf('Open'), 41 -1 42 ); 43 });