Skip to content

Commit f34ddd8

Browse files
chore: remove unnecessary logs in tests
1 parent 057c7a1 commit f34ddd8

File tree

4 files changed

+3
-18
lines changed

4 files changed

+3
-18
lines changed

test/datepicker_test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,6 @@ describe("DatePicker", () => {
19351935
<DatePicker
19361936
selected={selected}
19371937
onChange={(d) => {
1938-
console.log("trigger change", d);
19391938
date = d;
19401939
}}
19411940
showTimeSelect

test/time_input_test.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,15 @@ describe("timeInput", () => {
3232
});
3333

3434
xit("should trigger onChange event", () => {
35-
const timeComponent = shallow(
36-
<InputTimeComponent onChange={console.log} />
37-
);
35+
const timeComponent = shallow(<InputTimeComponent />);
3836
const input = timeComponent.find("input");
3937
input.simulate("change", { target: { value: "13:00" } });
4038
expect(timeComponent.state("time")).to.equal("13:00");
4139
});
4240

4341
it("should trigger onChange event and set the value as last valid timeString if empty string is passed as time input value", () => {
4442
const timeComponent = shallow(
45-
<InputTimeComponent timeString="13:00" onChange={console.log} />
43+
<InputTimeComponent timeString="13:00" onChange={() => {}} />
4644
);
4745
const input = timeComponent.find("input");
4846
input.simulate("change", { target: { value: "" } });
@@ -53,7 +51,6 @@ describe("timeInput", () => {
5351
const timeComponent = shallow(
5452
<InputTimeComponent
5553
timeString="13:00"
56-
onChange={console.log}
5754
customTimeInput={<CustomTimeInput />}
5855
/>
5956
);
@@ -69,7 +66,6 @@ describe("timeInput", () => {
6966
<InputTimeComponent
7067
date={new Date()}
7168
timeString="13:00"
72-
onChange={console.log}
7369
customTimeInput={<CustomTimeInput onTimeChange={onTimeChangeSpy} />}
7470
/>
7571
);
@@ -93,11 +89,7 @@ describe("timeInput", () => {
9389

9490
xit("should update input value if time is updated from outside", (done) => {
9591
const timeComponent = mount(
96-
<InputTimeComponent
97-
date={new Date()}
98-
timeString="13:00"
99-
onChange={console.log}
100-
/>
92+
<InputTimeComponent date={new Date()} timeString="13:00" />
10193
);
10294

10395
expect(timeComponent.find("input").props.value).to.equal("13:00");

test/timepicker_test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ describe("TimePicker", () => {
6868
showTimeSelect
6969
showTimeSelectOnly
7070
timeClassName={handleTimeColors}
71-
onChange={() => console.log("changed")}
7271
open
7372
focus
7473
/>

test/year_dropdown_options_test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,6 @@ describe("YearDropdownOptions with scrollable dropwdown", () => {
279279
.map((node) => node.text());
280280
const x = textContents.find((year) => year === utils.getYear(minDate));
281281
expect(x).to.be.undefined;
282-
console.log(
283-
"kektus",
284-
x,
285-
textContents.find((year) => year === utils.getYear(minDate))
286-
);
287282
expect(textContents.find((year) => year === utils.getYear(maxDate))).to.be
288283
.undefined;
289284
expect(

0 commit comments

Comments
 (0)