Skip to content

Commit

Permalink
Removes windows environment from travis
Browse files Browse the repository at this point in the history
  • Loading branch information
arqex committed Oct 18, 2018
1 parent 73d7150 commit 6596acb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -2,7 +2,6 @@ language: node_js
sudo: false
os:
- linux
- windows
node_js:
- '7'
- '8'
Expand Down
23 changes: 0 additions & 23 deletions test/tests.spec.js
Expand Up @@ -279,29 +279,6 @@ describe('Datetime', () => {
expect(component.find('.rdtDay.rdtToday').text()).toEqual('19');
});

// 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 });

utils.openDatepicker(component);

// Go to month view
utils.clickOnElement(component.find('.rdtSwitch'));

// Here the selected month is _May_, which is correct
expect(component.find('.rdtMonth .rdtActive').text()).toEqual('May');

// Go to year view
utils.clickOnElement(component.find('.rdtSwitch'));

// Click the selected year (2000)
utils.clickNthYear(component, 1);

// The selected month is now _January_
expect(component.find('.rdtMonth .rdtActive').text()).toEqual('May');
});

describe('with custom props', () => {
it('input=false', () => {
const component = utils.createDatetime({ input: false });
Expand Down

0 comments on commit 6596acb

Please sign in to comment.