Skip to content

Commit bfbbd85

Browse files
author
Peter Daily
committed
put back test for when dismissible is false
1 parent aeaa303 commit bfbbd85

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/notification-system.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,16 @@ describe('Notification Component', function() {
253253
done();
254254
});
255255

256+
it('should not dismiss the notificaion on click if dismissible is false', done => {
257+
notificationObj.dismissible = false;
258+
component.addNotification(notificationObj);
259+
let notification = TestUtils.findRenderedDOMComponentWithClass(instance, 'notification');
260+
TestUtils.Simulate.click(notification);
261+
let notificationAfterClicked = TestUtils.findRenderedDOMComponentWithClass(instance, 'notification');
262+
expect(notificationAfterClicked).toExist();
263+
done();
264+
});
265+
256266
it('should not dismiss the notification on click if dismissible is none', done => {
257267
notificationObj.dismissible = 'none';
258268
component.addNotification(notificationObj);

0 commit comments

Comments
 (0)