소스 검색

[ui] Vue 3 - UTs - Fixed the way stubs are passed for test

sreenaths 5 년 전
부모
커밋
7a5642c42b
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      desktop/core/src/desktop/js/components/DateRangePicker.test.ts
  2. 1 1
      desktop/core/src/desktop/js/components/Tabs.test.ts

+ 3 - 1
desktop/core/src/desktop/js/components/DateRangePicker.test.ts

@@ -22,7 +22,9 @@ describe('DateRangePicker.vue', () => {
   it('should render', () => {
     const wrapper = shallowMount(DateRangePicker, {
       global: {
-        stubs: { 'dropdown-panel': DropdownPanel }
+        stubs: {
+          DropdownPanel
+        }
       }
     });
     expect(wrapper.element).toMatchSnapshot();

+ 1 - 1
desktop/core/src/desktop/js/components/Tabs.test.ts

@@ -32,7 +32,7 @@ describe('Tabs.vue', () => {
       },
       global: {
         stubs: {
-          tab: Tab
+          Tab
         }
       }
     });