From f12c4569879cee099a7a1fb17d5d6e3146571bb6 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Mon, 11 Dec 2017 23:15:12 -0500 Subject: [PATCH] fix: jQuery element should be an object --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index c2520af..c898af3 100644 --- a/src/utils.js +++ b/src/utils.js @@ -2,7 +2,7 @@ const sd = require('@wildpeaks/snapshot-dom') const beautify = require('js-beautify').html 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