import * as Pikaday from 'pikaday'; import initDatePickers from '~/behaviors/date_picker'; import * as utils from '~/lib/utils/datetime_utility'; jest.mock('pikaday'); jest.mock('~/lib/utils/datetime_utility'); describe('date_picker behavior', () => { let pikadayMock; let parseMock; beforeEach(() => { pikadayMock = jest.spyOn(Pikaday, 'default'); parseMock = jest.spyOn(utils, 'parsePikadayDate'); setFixtures(`