ソースを参照

fix: 修复两处单元测试错误 (#1332)

* fix: 修复两处单元测试错误
yangjinjun3 3 年 前
コミット
72f384ca8f

+ 1 - 1
src/packages/__VUE/divider/__tests__/__snapshots__/divider.spec.ts.snap

@@ -1,3 +1,3 @@
 // Jest Snapshot v1, https://goo.gl/fbAQLP
 
-exports[`slot: html should contain custom text 1`] = `"<div class=\\"nut-divider nut-divider-center nut-divider-hairline\\">custom text</div>"`;
+exports[`slot: html should contain custom text 1`] = `"<view class=\\"nut-divider nut-divider-center nut-divider-hairline\\">custom text</view>"`;

+ 1 - 1
src/packages/__VUE/menu/__tests__/menu.spec.ts

@@ -197,7 +197,7 @@ test('menu item change props: value2 should be b after click', async () => {
 test('menu close-on-click-overlay props: ', async () => {
   const wrapper = mount(Menu, {
     props: {
-      closeOnClickOverlay: false
+      closeOnClickOverlay: true
     },
     slots: {
       default: h(MenuItem, {