diff --git a/src/DatetimePopup.vue b/src/DatetimePopup.vue index a64a672..2ca0ab9 100644 --- a/src/DatetimePopup.vue +++ b/src/DatetimePopup.vue @@ -2,7 +2,7 @@
{{ year }}
-
{{ dateFormattedDay }} {{ dateFormattedMonth }}
+
{{ dateFormatted }}
diff --git a/test/specs/DatetimePopup.spec.js b/test/specs/DatetimePopup.spec.js index 965ddf3..3ed4494 100644 --- a/test/specs/DatetimePopup.spec.js +++ b/test/specs/DatetimePopup.spec.js @@ -160,6 +160,25 @@ describe('DatetimePopup.vue', function () { }) }) + it('should render the month picker', function (done) { + const vm = createVM(this, + ``, + { + components: { DatetimePopup }, + data () { + return { + datetime: LuxonDatetime.local() + } + } + }) + + vm.$('.vdatetime-popup__date').click() + vm.$nextTick(() => { + expect(vm.$('.vdatetime-popup__body .vdatetime-month-picker')).to.exist + done() + }) + }) + it('should render the calendar on confirm in year picker', function (done) { const vm = createVM(this, ``,