' ).data( 'user-name', 'jon' )
.data( 'revision-id', 1 )
.data( 'user-gender', 'male' );
mw.thanks._mobileDiffInit( $user, $container );
assert.strictEqual( $container.find( 'button' ).length, 1, 'Thanks button was created.' );
} );
QUnit.test( 'Do not render button for anon users', 1, function ( assert ) {
var $container = $( '
' ),
$user = $( '
' );
mw.thanks._mobileDiffInit( $user, $container );
assert.strictEqual( $container.find( 'button' ).length, 0, 'No thanks button was created.' );
} );
}( jQuery ) );