Merge "Make RelatedArticles tests QUnit 2 compatible"

This commit is contained in:
jenkins-bot 2017-09-01 15:26:18 +00:00 committed by Gerrit Code Review
commit 9384692a20
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' ),