Skip to content

Commit

Permalink
test(VueCalendar): fix tests
Browse files Browse the repository at this point in the history
closes #54
  • Loading branch information
devCrossNet committed Feb 24, 2018
1 parent bfdc4f8 commit c32fc8a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/app/shared/components/VueCalendar/VueCalendar.spec.ts
Expand Up @@ -27,13 +27,15 @@ describe('VueCalendar.vue', () => {
});

test('renders component with min max date', () => {
const min: Date = new Date(2018, 1, 8);
const max: Date = new Date(2018, 1, 15);
const wrapper = mount(VueCalendar, {
localVue,
i18n: getI18n(),
mocks: { $style },
propsData: {
minDate: today,
maxDate: nextWeek,
minDate: min,
maxDate: max,
},
});

Expand All @@ -48,13 +50,15 @@ describe('VueCalendar.vue', () => {
});

test('renders component with range', () => {
const start: Date = new Date(2018, 1, 8);
const end: Date = new Date(2018, 1, 15);
const wrapper = mount(VueCalendar, {
localVue,
i18n: getI18n(),
mocks: { $style },
propsData: {
startDate: today,
endDate: nextWeek,
startDate: start,
endDate: end,
},
});

Expand Down

0 comments on commit c32fc8a

Please sign in to comment.