f5ff096d78
This commit moves our service list into a new presentational component, and is therefore mainly just moving things around. The main thing moved here is the logic required to resizing columns correctly is now moved to a component instead of the controller
25 lines
757 B
JavaScript
25 lines
757 B
JavaScript
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render } from '@ember/test-helpers';
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
module('Integration | Component | consul-service-list', function(hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function(assert) {
|
|
// Set any properties with this.set('myProperty', 'value');
|
|
// Handle any actions with this.set('myAction', function(val) { ... });
|
|
|
|
await render(hbs`{{consul-service-list}}`);
|
|
|
|
assert.equal(this.element.textContent.trim(), '');
|
|
|
|
// Template block usage:
|
|
await render(hbs`
|
|
{{#consul-service-list}}{{/consul-service-list}}
|
|
`);
|
|
|
|
assert.equal(this.element.textContent.trim(), '');
|
|
});
|
|
});
|