Use native ES5 Array prototype methods instead of jQuery
[lhc/web/wiklou.git] / tests / qunit / suites / resources / jquery / jquery.highlightText.test.js
index 0dac22e..277ba3f 100644 (file)
                                }
                        ];
 
-               $.each( cases, function ( i, item ) {
+               cases.forEach( function ( item ) {
                        $fixture = $( '<p>' ).text( item.text ).highlightText( item.highlight );
                        assert.equal(
                                $fixture.html(),