From dbefc2f009280f15d9c2a096208fd0f689aa817d Mon Sep 17 00:00:00 2001 From: undercloud Date: Wed, 14 Nov 2018 12:45:14 +0400 Subject: [PATCH] fix disabling --- test/specs/DatetimeMonthsPicker.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')