mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 16:25:52 +00:00
Merge "Make RelatedArticles tests QUnit 2 compatible"
This commit is contained in:
commit
9384692a20
|
@ -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' );
|
||||
|
|
|
@ -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' ),
|
||||
|
|
Loading…
Reference in a new issue