Jordan Cardwell
2017-03-26 4367347621333d89e1daa1be07b312127cb3ecf6
fixed test that was used to document existing bug
1 files modified
4 ■■■■ changed files
tests/datetime.spec.js 4 ●●●● patch | view | raw | blame | history
tests/datetime.spec.js
@@ -255,7 +255,7 @@
        expect(component.find('.rdtDay.rdtToday').text()).toEqual('19');
    });
    // Proof of bug
    // Proof of bug [FIXED]
    it('should show correct selected month when traversing view modes', () => {
        const date = new Date(2000, 4, 3, 2, 2, 2, 2),
            component = utils.createDatetime({ viewMode: 'days', defaultValue: date });
@@ -275,7 +275,7 @@
        utils.clickNthYear(component, 1);
        // The selected month is now _January_
        expect(component.find('.rdtMonth .rdtActive').text()).toEqual('Jan');
        expect(component.find('.rdtMonth .rdtActive').text()).toEqual('May');
    });
    describe('with custom props', () => {