File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,5 +77,6 @@ <h2 id="qunit-userAgent"></h2>
7777 <!-- Tests -->
7878 < script src ="test.core.js " type ="text/javascript "> </ script >
7979 < script src ="test.cloudBrowser.js " type ="text/javascript "> </ script >
80+ < script src ="test.notifications.js " type ="text/javascript "> </ script >
8081 </ body >
8182</ html >
Original file line number Diff line number Diff line change 1+ ( function ( $ ) {
2+ var $notifications ;
3+
4+ module ( 'Notifications' , {
5+ setup : function ( ) {
6+ $ . fx . off = true ;
7+
8+ $notifications = $ ( '<div>' ) ;
9+ ok ( $notifications . notifications ( ) , 'Initialize notifications widget' ) ;
10+ }
11+ } ) ;
12+
13+ test ( 'Widget setup' , function ( ) {
14+ var $notificationBox = $ ( 'html body > .notification-box' ) ;
15+
16+ ok ( $notifications . hasClass ( 'notifications' ) , 'Correct styling assigned' ) ;
17+ equal ( $notificationBox . size ( ) , 1 , 'Notification box present' ) ;
18+ } ) ;
19+ } ( jQuery ) ) ;
You can’t perform that action at this time.
0 commit comments