X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fjquery%2Fjquery.tablesorter.test.js;h=23ef26f6f6efbd20901eb42dc624ae56bb727000;hb=326d655fc9309f55112538b387ed8c201158a27d;hp=c88941ee5d8133045987df25b945869ead190216;hpb=36395150104588f2afea866c330b683e4329fa48;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js index c88941ee5d..23ef26f6f6 100644 --- a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js @@ -130,7 +130,7 @@ [ '$ 1.50' ], [ '$ 3.00' ], [ '$3.50' ], - // Comma's sort after dots + // Commas sort after dots // Not intentional but test to detect changes [ '€ 2,99' ] ], @@ -184,8 +184,8 @@ ], isoDateSortingSorted = [ [ '2009' ], - [ '2009-12-25T12:30:45' ], [ '2009-12-25T12:30:45+01:00' ], + [ '2009-12-25T12:30:45' ], [ '2009-12-25T12:30:45.001Z' ], [ '2009-12-25T12:30:45.111' ], [ '2010-01-31' ], @@ -238,7 +238,7 @@ $tbody = $table.find( 'tbody' ), $tr = $( '' ); - $.each( header, function ( i, str ) { + header.forEach( function ( str ) { var $th = $( '' ); $th.text( str ).appendTo( $tr ); } ); @@ -247,7 +247,7 @@ for ( i = 0; i < data.length; i++ ) { $tr = $( '' ); // eslint-disable-next-line no-loop-func - $.each( data[ i ], function ( j, str ) { + data[ i ].forEach( function ( str ) { var $td = $( '' ); $td.text( str ).appendTo( $tr ); } );