diff --git a/package.json b/package.json index f31aaab9f0b..a2ed8432dca 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,6 @@ }, "patchedDependencies": { "@adobe/leonardo-contrast-colors@1.0.0-alpha.16": "patches/@adobe__leonardo-contrast-colors@1.0.0-alpha.16.patch", - "v-calendar@2.3.4": "patches/v-calendar@2.3.4.patch", "vue-gettext@2.1.12": "patches/vue-gettext@2.1.12.patch" } } diff --git a/packages/design-system/package.json b/packages/design-system/package.json index 0e7851d2369..2c84e13c99c 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -106,7 +106,7 @@ "tippy.js": "^6.3.7", "typescript": "^4.3.2", "url-loader": "^4.1.1", - "v-calendar": "^2.3.4", + "v-calendar": "github:dschmidt/v-calendar#3ce6e3b8afd5491cb53ee811281d5fa8a45b044d", "vue-gettext": "^2.1.12", "vue-inline-svg": "^2.0.0", "vue-jest": "^3.0.4", @@ -134,7 +134,7 @@ "postcss-import": "^12.0.1", "postcss-url": "^9.0.0", "tippy.js": "^6.3.7", - "v-calendar": "^2.3.4", + "v-calendar": "github:dschmidt/v-calendar#3ce6e3b8afd5491cb53ee811281d5fa8a45b044d", "vue": "3.2.45", "vue-inline-svg": "^2.0.0", "vue-select": "^3.12.0", diff --git a/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts b/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts index 26b1f3c1730..c5270dfa3bb 100644 --- a/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts +++ b/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts @@ -1,16 +1,16 @@ -import { shallowMount } from 'web-test-helpers' - import Datepicker from './OcDatepicker.vue' - -const slotDefault = "" +import { mount } from 'web-test-helpers' describe('OcDatePicker', () => { it('renders default scoped slot', () => { - const wrapper = shallowMount(Datepicker, { + const slotDefault = "" + const wrapper = mount(Datepicker, { slots: { default: slotDefault }, - props: { value: null } + props: { value: null }, + global: { + renderStubDefaultSlot: true + } }) - expect(wrapper.find('#default-slot').exists()).toBeTruthy() }) }) diff --git a/packages/design-system/src/components/OcDatepicker/OcDatepicker.vue b/packages/design-system/src/components/OcDatepicker/OcDatepicker.vue index afcc4412c89..a4e8dbf208e 100644 --- a/packages/design-system/src/components/OcDatepicker/OcDatepicker.vue +++ b/packages/design-system/src/components/OcDatepicker/OcDatepicker.vue @@ -1,5 +1,5 @@