fix: jQuery element should be an object

This commit is contained in:
Gleb Bahmutov 2017-12-11 23:15:12 -05:00
parent 72d094373b
commit f12c456987

View file

@ -2,7 +2,7 @@ const sd = require('@wildpeaks/snapshot-dom')
const beautify = require('js-beautify').html const beautify = require('js-beautify').html
function isJqueryElement (x) { function isJqueryElement (x) {
return x && typeof x !== 'string' && 'wrap' in x return x && typeof x === 'object' && 'wrap' in x
} }
// converts DOM element to a JSON object // converts DOM element to a JSON object