Skip to content

Commit

Permalink
fix(ZMSKVR-134): fix calendar test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fink authored and Thomas Fink committed Feb 18, 2025
1 parent 3320311 commit 6df9fce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/__tests__/components/Calendar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ store.state.data.servce = {
}
]
}

const wrapper = mount(TheCalendar, {
Vue,
store,
Expand Down Expand Up @@ -319,7 +320,7 @@ describe('Calendar', () => {

expect(mockCallback).toHaveBeenCalledTimes(1)
expect(wrapper.vm.selectableDates).toEqual([])
expect(wrapper.vm.dateError).toBe(false)
expect(wrapper.vm.dateError).toBe("Something went wrong")
})

it('chooseAppointment method fails to reserve appointment', async () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/TheCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ export default {
} else {
this.dateError = this.$t('networkError')
}
window.scrollTo(0, 0)
});
},
handleCaptchaDone(solution) {
Expand Down

0 comments on commit 6df9fce

Please sign in to comment.