mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
20 lines
509 B
JavaScript
20 lines
509 B
JavaScript
(function($) {
|
|
var $notifications;
|
|
|
|
module('Notifications', {
|
|
setup: function() {
|
|
$.fx.off = true;
|
|
|
|
$notifications = $('<div>');
|
|
ok($notifications.notifications(), 'Initialize notifications widget');
|
|
}
|
|
});
|
|
|
|
test('Widget setup', function() {
|
|
var $notificationBox = $('html body > .notification-box');
|
|
|
|
ok($notifications.hasClass('notifications'), 'Correct styling assigned');
|
|
equal($notificationBox.size(), 1, 'Notification box present');
|
|
});
|
|
}(jQuery));
|