Browse Source

test: test 优化

Drjnigfubo 3 years ago
parent
commit
89f0c5ac3e

+ 0 - 1
src/packages/__VUE/fixednav/__tests__/fixednav.spec.ts

@@ -51,7 +51,6 @@ describe('FixedNav', () => {
     expect(_html1.exists()).toBe(true);
     const _html = wrapper.find('.nut-fixednav__btn');
     expect(_html.html()).toContain('展开');
-    console.log(_html.html(), '00000');
     wrapper.find('.nut-fixednav__btn').trigger('click');
     await nextTick();
     expect(wrapper.emitted('update:visible')![0]).toEqual([true]);

+ 4 - 4
src/packages/__VUE/form/__test__/index.spec.ts

@@ -132,9 +132,9 @@ describe('Form', () => {
             submit() {
               dynamicRefForm.value.validate().then(({ valid, errors }: any) => {
                 if (valid) {
-                  console.log('success', dynamicForm);
+                  // console.log('success', dynamicForm);
                 } else {
-                  console.log('error submit!!', errors);
+                  // console.log('error submit!!', errors);
                 }
               });
             },
@@ -223,9 +223,9 @@ describe('Form', () => {
         const submit = () => {
           ruleForm.value.validate().then(({ valid, errors }: any) => {
             if (valid) {
-              console.log('success', formData);
+              // console.log('success', formData);
             } else {
-              console.log('error submit!!!', errors);
+              // console.log('error submit!!!', errors);
             }
           });
         };

+ 0 - 1
src/packages/__VUE/notify/index.vue

@@ -63,7 +63,6 @@ export default create({
     });
     onMounted(() => {
       state.mounted = true;
-      console.log(props.className);
     });
 
     const clickCover = () => {