@@ -89,6 +89,13 @@ describe('Notification Component', function() {
89
89
done ( ) ;
90
90
} ) ;
91
91
92
+ it ( 'should add additional classes to the notification if specified' , done => {
93
+ component . addNotification ( Object . assign ( { } , defaultNotification , { className : 'FOO' } ) ) ;
94
+ let notification = TestUtils . findRenderedDOMComponentWithClass ( instance , 'notification' ) ;
95
+ expect ( notification . className ) . to . contain ( ' FOO' ) ;
96
+ done ( ) ;
97
+ } ) ;
98
+
92
99
it ( 'should render notifications in all positions with all levels' , done => {
93
100
let count = 0 ;
94
101
for ( let position of Object . keys ( positions ) ) {
@@ -392,7 +399,7 @@ describe('Notification Component', function() {
392
399
done ( ) ;
393
400
} ) ;
394
401
395
- it ( 'should render containers with a overrided width' , done => {
402
+ it ( 'should render containers with a overriden width' , done => {
396
403
notificationObj . position = 'tc' ;
397
404
component . addNotification ( notificationObj ) ;
398
405
let notification = TestUtils . findRenderedDOMComponentWithClass ( instance , 'notifications-tc' ) ;
@@ -410,7 +417,7 @@ describe('Notification Component', function() {
410
417
done ( ) ;
411
418
} ) ;
412
419
413
- it ( 'should render containers with a overrided width for a specific position' , done => {
420
+ it ( 'should render containers with a overriden width for a specific position' , done => {
414
421
notificationObj . position = 'tl' ;
415
422
component . addNotification ( notificationObj ) ;
416
423
let notification = TestUtils . findRenderedDOMComponentWithClass ( instance , 'notifications-tl' ) ;
0 commit comments