-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Refs Must Have Owner Warning in React 16.1.1
- Loading branch information
1 parent
91695e7
commit bd3d8d8
Showing
7 changed files
with
42 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ export default class TimePicker extends BasePicker { | |
/> | ||
) | ||
} | ||
} | ||
} |
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,26 @@ | ||
import React from 'react'; | ||
import { mount } from 'enzyme'; | ||
import { TimePicker } from '../../../src'; | ||
|
||
describe('<TimePicker>', () => { | ||
var wrapper = mount( | ||
<TimePicker | ||
onChange={() => { | ||
|
||
}} | ||
disabledHours={['00', '01']} | ||
disabledMinutes={['01', '02']} | ||
disabled={true} | ||
format="HH:mm:ss" | ||
placeholder="选择时间de拉!" | ||
value={new Date(2017, 6, 28, 15, 51)} | ||
></TimePicker> | ||
); | ||
|
||
it('Test the default props and node.', () => { | ||
expect(wrapper.name()).toBe('TimePicker'); | ||
// 默认值测试 | ||
expect(wrapper.type()).toEqual(TimePicker); | ||
}) | ||
|
||
}) |
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