Skip to content

Commit

Permalink
✅ fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 4, 2019
1 parent 1afc112 commit 59e4614
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
snapshotSerializers: [require.resolve('enzyme-to-json/serializer')],
};
2 changes: 0 additions & 2 deletions tests/Header.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ describe('Header', () => {
function renderPicker(props) {
const showSecond = true;
const format = 'HH:mm:ss';

// eslint-disable-next-line
return mount(
<TimePicker
format={format}
Expand Down
5 changes: 1 addition & 4 deletions tests/Select.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ describe('Select', () => {
const showSecond = true;
const format = 'HH:mm:ss';

// eslint-disable-next-line
return mount(
<TimePicker
format={format}
Expand Down Expand Up @@ -459,9 +458,7 @@ describe('Select', () => {
testClearIcon(
'customize element clear icon correctly',
<span className="test-clear-element">Clear Me</span>,
picker => {
return picker.find('.test-clear-element');
},
picker => picker.find('.test-clear-element'),
);
});

Expand Down
2 changes: 0 additions & 2 deletions tests/TimePicker.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ describe('TimePicker', () => {
const showSecond = true;
const format = 'HH:mm:ss';

// eslint-disable-next-line
return mount(
<TimePicker
format={format}
Expand All @@ -28,7 +27,6 @@ describe('TimePicker', () => {
const showSecond = false;
const format = 'HH:mm';

// eslint-disable-next-line
return mount(
<TimePicker
format={format}
Expand Down

0 comments on commit 59e4614

Please sign in to comment.