Simplify Toolbar Link components

This commit is contained in:
Joshua Ogle
2019-04-29 09:19:03 -06:00
parent 4760a3b3c9
commit acbcdc6892
40 changed files with 154 additions and 131 deletions

View File

@@ -0,0 +1,17 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { isPresent } from 'ember-cli-page-object';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | toolbar-link', function(hooks) {
setupRenderingTest(hooks);
test('it renders', async function(assert) {
await render(hbs`<ToolbarLink @params="/secrets">Link</ToolbarLink>`);
assert.equal(this.element.textContent.trim(), 'Link');
assert.ok(isPresent('.toolbar-link'));
assert.ok(isPresent('.icon'));
});
});