Skip to content

Commit a5fc7c0

Browse files
committed
Mark empty functions as intentionally empty
1 parent 345a7ec commit a5fc7c0

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

__mocks__/update-input-width.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
module.exports = () => {};
1+
module.exports = () => {
2+
// Intentionally empty
3+
};

src/DateInput/DayInput.spec.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import DayInput from './DayInput';
66
describe('DayInput', () => {
77
const defaultProps = {
88
className: 'className',
9-
onChange: () => {},
9+
onChange: () => {
10+
// Intentionally empty
11+
},
1012
};
1113

1214
it('renders an input', () => {

src/DateInput/MonthInput.spec.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import MonthInput from './MonthInput';
66
describe('MonthInput', () => {
77
const defaultProps = {
88
className: 'className',
9-
onChange: () => {},
9+
onChange: () => {
10+
// Intentionally empty
11+
},
1012
};
1113

1214
it('renders an input', () => {

src/DateInput/MonthSelect.spec.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import MonthSelect from './MonthSelect';
66
describe('MonthSelect', () => {
77
const defaultProps = {
88
className: 'className',
9-
onChange: () => {},
9+
onChange: () => {
10+
// Intentionally empty
11+
},
1012
};
1113

1214
it('renders a select', () => {

src/DateInput/NativeInput.spec.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import NativeInput from './NativeInput';
55

66
describe('NativeInput', () => {
77
const defaultProps = {
8-
onChange: () => {},
8+
onChange: () => {
9+
// Intentionally empty
10+
},
911
valueType: 'day',
1012
};
1113

src/DateInput/YearInput.spec.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import YearInput from './YearInput';
66
describe('YearInput', () => {
77
const defaultProps = {
88
className: 'className',
9-
onChange: () => {},
9+
onChange: () => {
10+
// Intentionally empty
11+
},
1012
};
1113

1214
it('renders an input', () => {

0 commit comments

Comments
 (0)