Skip to content

Commit 4367347

Browse files
jordancardwellsimeg
authored andcommitted
fixed test that was used to document existing bug
1 parent c987d1c commit 4367347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/datetime.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('Datetime', () => {
255255
expect(component.find('.rdtDay.rdtToday').text()).toEqual('19');
256256
});
257257

258-
// Proof of bug
258+
// Proof of bug [FIXED]
259259
it('should show correct selected month when traversing view modes', () => {
260260
const date = new Date(2000, 4, 3, 2, 2, 2, 2),
261261
component = utils.createDatetime({ viewMode: 'days', defaultValue: date });
@@ -275,7 +275,7 @@ describe('Datetime', () => {
275275
utils.clickNthYear(component, 1);
276276

277277
// The selected month is now _January_
278-
expect(component.find('.rdtMonth .rdtActive').text()).toEqual('Jan');
278+
expect(component.find('.rdtMonth .rdtActive').text()).toEqual('May');
279279
});
280280

281281
describe('with custom props', () => {

0 commit comments

Comments
 (0)