-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from dmtrKovalenko/develop
Release 1.0.0-alpha.7
- Loading branch information
Showing
47 changed files
with
1,051 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import moment from 'moment'; | ||
import { shallow } from 'enzyme'; | ||
import { DateTimePicker } from '../../src/DateTimePicker/DateTimePicker'; | ||
|
||
describe('DateTimePicker', () => { | ||
let component; | ||
|
||
beforeEach(() => { | ||
component = shallow(<DateTimePicker | ||
date={moment('01-01-2017')} | ||
classes={{}} | ||
/>); | ||
}); | ||
|
||
it('Should renders', () => { | ||
console.log(component.debug()); // TODO REMOVE ME | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import moment from 'moment'; | ||
import { shallow } from 'enzyme'; | ||
import { DateTimePickerHeader } from '../../src/DateTimePicker/DateTimePickerHeader'; | ||
|
||
describe('DateTimePickerHeader', () => { | ||
let component; | ||
|
||
beforeEach(() => { | ||
component = shallow(<DateTimePickerHeader | ||
setMeridiemMode={() => jest.fn()} | ||
date={moment('01-01-2017')} | ||
classes={{}} | ||
/>); | ||
}); | ||
|
||
it('Should renders', () => { | ||
console.log(component.debug()); // TODO REMOVE ME | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import { DateTimePickerModal } from '../../src/DateTimePicker/DateTimePickerModal'; | ||
|
||
describe('DateTimePickerModal', () => { | ||
let component; | ||
|
||
beforeEach(() => { | ||
component = shallow(<DateTimePickerModal classes={{}} />); | ||
}); | ||
|
||
it('Should renders', () => { | ||
console.log(component.debug()); // TODO REMOVE ME | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import { DateTimePickerTabs } from '../../src/DateTimePicker/DateTimePickerTabs'; | ||
|
||
describe('DateTimePickerTabs', () => { | ||
let component; | ||
|
||
beforeEach(() => { | ||
component = shallow(<DateTimePickerTabs | ||
theme={{ palette: { type: 'light' } }} | ||
classes={{}} | ||
/>); | ||
}); | ||
|
||
it('Should renders', () => { | ||
console.log(component.debug()); // TODO REMOVE ME | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import { DateTimePickerView } from '../../src/DateTimePicker/DateTimePickerView'; | ||
|
||
describe('DateTimePickerView', () => { | ||
let component; | ||
|
||
beforeEach(() => { | ||
component = shallow(<DateTimePickerView classes={{}} />); | ||
}); | ||
|
||
it('Should renders', () => { | ||
console.log(component.debug()); // TODO REMOVE ME | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import moment from 'moment'; | ||
import { getHours, getMinutes, convertToMeridiem } from '../../../src/TimePicker/utils/time-utils'; | ||
|
||
describe('Time utils', () => { | ||
it('Should properly calculate hours', () => { | ||
expect(getHours(25, 50)).toBe(10); | ||
}); | ||
|
||
it('Should properly calculate minutes', () => { | ||
expect(getMinutes(25, 50)).toBe(51); | ||
}); | ||
|
||
it('Should convert time to meridiem', () => { | ||
const time = convertToMeridiem(moment('2017-01-01T16:00'), 'am'); | ||
expect(time.hours()).toBe(4); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import ModalWrapper from '../../src/wrappers/ModalWrapper'; | ||
|
||
describe('ModalWrapper', () => { | ||
let component; | ||
|
||
beforeEach(() => { | ||
component = shallow(<ModalWrapper value={new Date()} />); | ||
}); | ||
|
||
it('Should renders', () => { | ||
console.log(component.debug()); // TODO REMOVE ME | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.