tests: Make compartible with QUnit 2

Change-Id: I726d7f75e37a759e1b1f6372710cb06f754fc94b
This commit is contained in:
James D. Forrester 2017-10-23 13:38:11 -07:00
parent 8e913f1c5d
commit 6bf8fd0b11

View file

@ -1,7 +1,7 @@
( function ( $, mw ) { ( function ( $, mw ) {
QUnit.module( 'Thanks mobilediff' ); QUnit.module( 'Thanks mobilediff' );
QUnit.test( 'render button for logged in users', 1, function ( assert ) { QUnit.test( 'render button for logged in users', function ( assert ) {
var $container = $( '<div>' ), var $container = $( '<div>' ),
$user = $( '<div>' ).data( 'user-name', 'jon' ) $user = $( '<div>' ).data( 'user-name', 'jon' )
.data( 'revision-id', 1 ) .data( 'revision-id', 1 )