@@ -238,24 +238,16 @@ describe "Notifications Log", ->
238238 beforeEach ->
239239 clearButton = workspaceElement .querySelector (' .notifications-log .notifications-clear-log' )
240240 atom .notifications .addInfo (' A message' , dismissable : true )
241+ atom .notifications .addInfo (' non-dismissable' )
241242 clearButton .click ()
242243
243244 it " clears the notifications" , ->
244245 expect (atom .notifications .getNotifications ()).toHaveLength 0
245246 notifications = workspaceElement .querySelector (' atom-notifications' )
246247 advanceClock (NotificationElement :: animationDuration )
247- expect (notifications .childNodes ).toHaveLength 0
248+ expect (notifications .children ).toHaveLength 0
248249 logItems = workspaceElement .querySelector (' .notifications-log-items' )
249- expect (logItems .childNodes ).toHaveLength 0
250-
251- # TODO: These don't work most likely because of some async operation
252- # it "removes all notifications", ->
253- # notifications = workspaceElement.querySelector('atom-notifications')
254- # expect(notifications.childNodes).toHaveLength 0
255- #
256- # it "clears the notifications log", ->
257- # logItems = workspaceElement.querySelector('.notifications-log-items')
258- # expect(logItems.childNodes).toHaveLength 0
250+ expect (logItems .children ).toHaveLength 0
259251
260252 describe " the dock pane" , ->
261253 notificationsLogPane = null
0 commit comments