CSS: Make the reliableTrDimensions support test work with Bootstrap CSS
[jquery.git] / test / node_smoke_tests / lib / ensure_iterability_es6.js
bloba948f1996d9f04c48d96c0c210b7dc5fa33e81aa
1 "use strict";
3 const assert = require( "assert" );
5 const ensureIterability = () => {
6         const { JSDOM } = require( "jsdom" );
8         const { window } = new JSDOM( "" );
10         let i;
11         const ensureJQuery = require( "./ensure_jquery" );
12         const jQuery = require( "../../../dist/jquery.js" )( window );
13         const elem = jQuery( "<div></div><span></span><a></a>" );
14         let result = "";
16         ensureJQuery( jQuery );
18         for ( i of elem ) {
19                 result += i.nodeName;
20         }
22         assert.strictEqual( result, "DIVSPANA", "for-of works on jQuery objects" );
25 module.exports = ensureIterability;