Browse Source

test: snap ellipsis 、uploader

richard1015 3 years ago
parent
commit
b7ee5e9550

+ 3 - 1
src/packages/__VUE/cascader/__tests__/cascader.spec.ts

@@ -7,6 +7,7 @@ import Popup from '../../popup/index.vue';
 import Icon from '../../icon/index.vue';
 import Tabs from '../../tabs/index.vue';
 import TabPane from '../../tabpane/index.vue';
+import Sticky from '../../sticky/index.vue';
 
 const mountCascader = (options = {}) =>
   mount(Cascader, {
@@ -16,7 +17,8 @@ const mountCascader = (options = {}) =>
         [Popup.name]: Popup,
         [Icon.name]: Icon,
         [TabPane.name]: TabPane,
-        [Tabs.name]: Tabs
+        [Tabs.name]: Tabs,
+        [Sticky.name]: Sticky
       },
       stubs: {
         teleport: true

+ 3 - 3
src/packages/__VUE/ellipsis/__tests__/__snapshots__/ellipsis.spec.ts.snap

@@ -4,7 +4,7 @@ exports[`Ellipsis Props Direction Middle 1`] = `
 "<view class=\\"nut-ellipsis\\">
   <!--v-if-->
   <view>NutUI3.0上线后我们研发团队...
-    <!--v-if--> ...UI 中增加小程序多端适配的能力。
+    <!--v-if-->...UI 中增加小程序多端适配的能力。
   </view>
   <!--v-if-->
 </view>"
@@ -14,7 +14,7 @@ exports[`Ellipsis Props Direction Start 1`] = `
 "<view class=\\"nut-ellipsis\\">
   <!--v-if-->
   <view>
-    <!--v-if--> ...多的开发者带来便利,我们决定在 NutUI 中增加小程序多端适配的能力。
+    <!--v-if-->...多的开发者带来便利,我们决定在 NutUI 中增加小程序多端适配的能力。
   </view>
   <!--v-if-->
 </view>"
@@ -24,7 +24,7 @@ exports[`Ellipsis Props Rows 1`] = `
 "<view class=\\"nut-ellipsis\\">
   <!--v-if-->
   <view>
-    <!--v-if--> ... 的相关组件,但是在跨端小程序的开发过程中,发现没有合适的组件库可以支持多端开发。为了填补这一空白,同时为了优化开发者体验,让 NutUI 能够为更多的开发者带来便利,我们决定在 NutUI 中增加小程序多端适配的能力。
+    <!--v-if-->... 的相关组件,但是在跨端小程序的开发过程中,发现没有合适的组件库可以支持多端开发。为了填补这一空白,同时为了优化开发者体验,让 NutUI 能够为更多的开发者带来便利,我们决定在 NutUI 中增加小程序多端适配的能力。
   </view>
   <!--v-if-->
 </view>"

+ 7 - 0
src/packages/__VUE/uploader/__tests__/__snapshots__/index.spec.ts.snap

@@ -1,5 +1,12 @@
 // Jest Snapshot v1, https://goo.gl/fbAQLP
 
+exports[`delete-icon prop 1`] = `
+"<view class=\\"nut-uploader\\">
+  <!--v-if-->
+  <view class=\\"nut-uploader__upload picture\\"><i class=\\"nutui-iconfont nut-icon nut-icon-photograph\\" style=\\"color: rgb(128, 128, 128);\\" src=\\"\\"></i><input class=\\"nut-uploader__input\\" type=\\"file\\" accept=\\"*\\" name=\\"file\\"></view>
+</view>"
+`;
+
 exports[`render preview image 1`] = `
 "<view class=\\"nut-uploader\\" modelvalue=\\"[object Object],[object Object],[object Object]\\">
   <!--v-if-->