Skip to content

Commit

Permalink
add class name integration test (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Batson authored Sep 28, 2017
1 parent 5fd8503 commit 34b8e82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/flash-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default Component.extend({
layout,
active: false,
messageStyle: 'bootstrap',
classNames: 'flash-message',
classNames: ['flash-message'],
classNameBindings: ['alertType', 'active', 'exiting'],

showProgressBar: readOnly('flash.showProgress'),
Expand Down
1 change: 1 addition & 0 deletions tests/integration/components/flash-message-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ test('it renders a flash message', function(assert) {
`);

assert.equal(this.$().text().trim(), 'hi');
assert.ok(this.$('.alert:eq(0)').hasClass('flash-message'));
});

test('it does not error when quickly removed from the DOM', function(assert) {
Expand Down

0 comments on commit 34b8e82

Please sign in to comment.