Make RelatedArticles tests QUnit 2 compatible

Bug: T174598
Change-Id: Ib5a8a46253beed60e77de34263504bb12146641e
This commit is contained in:
jdlrobson 2017-09-01 11:16:31 -04:00
parent 6add5a1eac
commit 3ec5e91e00
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
QUnit.module( 'ext.relatedArticles.cards/CardModel' );
QUnit.test( '#set', 1, function ( assert ) {
QUnit.test( '#set', function ( assert ) {
var model = new CardModel( {} );
model.on( 'change', function ( attributes ) {
@ -25,7 +25,7 @@
model.set( 'foo', 'bar', true );
} );
QUnit.test( '#get', 2, function ( assert ) {
QUnit.test( '#get', function ( assert ) {
var model = new CardModel( {} );
model.set( 'foo', 'bar' );

View file

@ -8,7 +8,7 @@
QUnit.module( 'ext.relatedArticles.cards/CardView' );
QUnit.test( '#_render escapes the thumbnailUrl model attribute', 1, function ( assert ) {
QUnit.test( '#_render escapes the thumbnailUrl model attribute', function ( assert ) {
var model = new CardModel( {
title: 'One',
url: mw.util.getUrl( 'One' ),