Make Minerva QUnit tests v2 compatible
Drop the checks for number of assertions Bug: T174598 Change-Id: I82728a389d733900144786c149239856562a8c46
This commit is contained in:
parent
b7946cba59
commit
dcdee45861
|
@ -9,7 +9,7 @@
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( '#setCount', 2, function ( assert ) {
|
QUnit.test( '#setCount', function ( assert ) {
|
||||||
var initialClassExpectationsMet,
|
var initialClassExpectationsMet,
|
||||||
badge = new NotificationBadge( {
|
badge = new NotificationBadge( {
|
||||||
overlayManager: this.OverlayManager,
|
overlayManager: this.OverlayManager,
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
assert.ok( badge.$el.find( '.zero' ).length === 1, 'A zero class is present on the badge' );
|
assert.ok( badge.$el.find( '.zero' ).length === 1, 'A zero class is present on the badge' );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( '#render [hasUnseenNotifications]', 1, function ( assert ) {
|
QUnit.test( '#render [hasUnseenNotifications]', function ( assert ) {
|
||||||
var badge = new NotificationBadge( {
|
var badge = new NotificationBadge( {
|
||||||
notificationCount: 0,
|
notificationCount: 0,
|
||||||
overlayManager: this.OverlayManager,
|
overlayManager: this.OverlayManager,
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
assert.ok( badge.$el.find( '.mw-ui-icon' ).length === 1, 'A bell icon is visible' );
|
assert.ok( badge.$el.find( '.mw-ui-icon' ).length === 1, 'A bell icon is visible' );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( '#markAsSeen', 2, function ( assert ) {
|
QUnit.test( '#markAsSeen', function ( assert ) {
|
||||||
var badge = new NotificationBadge( {
|
var badge = new NotificationBadge( {
|
||||||
notificationCount: 2,
|
notificationCount: 2,
|
||||||
overlayManager: this.OverlayManager,
|
overlayManager: this.OverlayManager,
|
||||||
|
|
Loading…
Reference in New Issue