From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:48:15 +0800
Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改

---
 PAMapp/node_modules/@vue/test-utils/dist/vue-test-utils.iife.js |   53 ++++++++++++++++++++++-------------------------------
 1 files changed, 22 insertions(+), 31 deletions(-)

diff --git a/PAMapp/node_modules/@vue/test-utils/dist/vue-test-utils.iife.js b/PAMapp/node_modules/@vue/test-utils/dist/vue-test-utils.iife.js
index 3016098..e895cdb 100644
--- a/PAMapp/node_modules/@vue/test-utils/dist/vue-test-utils.iife.js
+++ b/PAMapp/node_modules/@vue/test-utils/dist/vue-test-utils.iife.js
@@ -1799,6 +1799,10 @@
     }
   }
 
+  function isVueWrapper(wrapper) {
+    return wrapper.vm || wrapper.isFunctionalComponent
+  }
+
   // 
 
   function addMocks(
@@ -1953,7 +1957,7 @@
   }
 
   function isComponentOptions(c) {
-    return typeof c === 'object' && (c.template || c.render)
+    return c !== null && typeof c === 'object' && (c.template || c.render)
   }
 
   function isFunctionalComponent(c) {
@@ -10645,17 +10649,6 @@
     this.__warnIfDestroyed();
 
     var selector = getSelector(rawSelector, 'findComponent');
-    if (!this.vm && !this.isFunctionalComponent) {
-      throwError(
-        'You cannot chain findComponent off a DOM element. It can only be used on Vue Components.'
-      );
-    }
-
-    if (selector.type === DOM_SELECTOR) {
-      throwError(
-        'findComponent requires a Vue constructor or valid find object. If you are searching for DOM nodes, use `find` instead'
-      );
-    }
 
     return this.__find(rawSelector, selector)
   };
@@ -10697,30 +10690,28 @@
     this.__warnIfDestroyed();
 
     var selector = getSelector(rawSelector, 'findAll');
-    if (!this.vm) {
-      throwError(
-        'You cannot chain findAllComponents off a DOM element. It can only be used on Vue Components.'
-      );
-    }
-    if (selector.type === DOM_SELECTOR) {
-      throwError(
-        'findAllComponents requires a Vue constructor or valid find object. If you are searching for DOM nodes, use `find` instead'
-      );
-    }
-    return this.__findAll(rawSelector, selector)
+
+    return this.__findAll(rawSelector, selector, isVueWrapper)
   };
 
-  Wrapper.prototype.__findAll = function __findAll (rawSelector, selector) {
+  Wrapper.prototype.__findAll = function __findAll (
+    rawSelector,
+    selector,
+    filterFn
+  ) {
       var this$1 = this;
+      if ( filterFn === void 0 ) filterFn = function () { return true; };
 
     var nodes = find(this.rootNode, this.vm, selector);
-    var wrappers = nodes.map(function (node) {
-      // Using CSS Selector, returns a VueWrapper instance if the root element
-      // binds a Vue instance.
-      var wrapper = createWrapper(node, this$1.options);
-      wrapper.selector = rawSelector;
-      return wrapper
-    });
+    var wrappers = nodes
+      .map(function (node) {
+        // Using CSS Selector, returns a VueWrapper instance if the root element
+        // binds a Vue instance.
+        var wrapper = createWrapper(node, this$1.options);
+        wrapper.selector = rawSelector;
+        return wrapper
+      })
+      .filter(filterFn);
 
     var wrapperArray = new WrapperArray(wrappers);
     wrapperArray.selector = rawSelector;

--
Gitblit v1.8.0