Skip to content

Commit 7bd2b7c

Browse files
committed
test(test): add full test
1 parent f04d3e0 commit 7bd2b7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"react-addons-test-utils": "15.0.2",
4242
"react-dom": "15.0.2",
4343
"react-native": "^0.26.0",
44-
"react-native-mock": "^0.2.2",
44+
"react-native-mock": "^0.2.3",
4545
"sinon": "^1.17.4"
4646
},
4747
"config": {

test/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ describe('DatePicker:', () => {
176176
const datePicker = wrapper.instance();
177177

178178
datePicker.onDatetimePicked({action: 'dismissedAction', year: 2016, month: 12, day: 12});
179-
// datePicker.onDatetimePicked({action: '', year: 2016, month: 12, day: 12});
179+
datePicker.onDatetimePicked({action: '', year: 2016, month: 12, day: 12});
180180
datePicker.onDatetimeTimePicked(2016, 6, 1, {action: 'dismissedAction', hour: 12, minute: 10});
181181
datePicker.onDatetimeTimePicked(2016, 6, 1, {action: '', hour: 12, minute: 10});
182182

@@ -212,7 +212,7 @@ describe('DatePicker:', () => {
212212
expect(datePicker.onPressDate).to.not.throw(Error);
213213

214214
datePicker.mode = 'time';
215-
// expect(datePicker.onPressDate).to.not.throw(Error);
215+
expect(datePicker.onPressDate).to.not.throw(Error);
216216

217217
datePicker.mode = 'tttt';
218218
expect(datePicker.onPressDate).to.throw(Error);

0 commit comments

Comments
 (0)