diff --git a/test/specs/DatetimeMonthsPicker.spec.js b/test/specs/DatetimeMonthsPicker.spec.js index 5cbdc32..4b6e136 100644 --- a/test/specs/DatetimeMonthsPicker.spec.js +++ b/test/specs/DatetimeMonthsPicker.spec.js @@ -38,7 +38,7 @@ describe('DatetimeMonthPicker.vue', function () { months.forEach(month => { const monthName = month.textContent.trim() - if (!(['July', 'August', 'September', 'October', 'November', 'December'].indexOf(monthName) === 1)) { + if (!(['July', 'August', 'September', 'October', 'November', 'December'].indexOf(monthName) === -1)) { expect(month).to.have.not.class('vdatetime-month-picker__item--disabled') } else { expect(month).to.have.class('vdatetime-month-picker__item--disabled')