Add Inline Alert component

This commit is contained in:
Joshua Ogle
2018-11-02 10:02:45 -06:00
parent e768e6a596
commit b642b6a78c
19 changed files with 131 additions and 66 deletions

View File

@@ -0,0 +1,17 @@
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 | alert-inline', 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`{{alert-inline type="danger" message="test message"}}`);
assert.equal(this.element.textContent.trim(), 'test message');
});
});