Browse Source

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

sreenaths 4 years ago
parent
commit
7a5642c42b

+ 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
         }
       }
     });