Skip to content

Commit

Permalink
Fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ndresx committed Oct 24, 2020
1 parent 619e076 commit 5cf3453
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Countdown.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('<Countdown />', () => {
wrapper = mount(
<Countdown
date={Date.now() + timeDiff}
renderer={(props) => (
renderer={props => (
<div>
{props.days}
{props.hours}
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('<Countdown />', () => {
wrapper = mount(
<Countdown date={Date.now() + timeDiff} zeroPadTime={zeroPadTime}>
<Completionist
ref={(el) => {
ref={el => {
completionist = el;
}}
name="master"
Expand Down Expand Up @@ -120,11 +120,11 @@ describe('<Countdown />', () => {
});

it('should trigger onTick and onComplete callbacks', () => {
const onTick = jest.fn((stats) => {
const onTick = jest.fn(stats => {
expect(stats).toEqual(calcTimeDelta(countdownDate));
});

const onComplete = jest.fn((stats) => {
const onComplete = jest.fn(stats => {
expect(stats.total).toEqual(0);
});

Expand Down
4 changes: 2 additions & 2 deletions src/Countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default class Countdown extends React.Component<CountdownProps, Countdown
const keysA = Object.keys(objA);
return (
keysA.length === Object.keys(objB).length &&
!keysA.some((keyA) => {
!keysA.some(keyA => {
const valueA = objA[keyA];
const valueB = objB[keyA];
return (
Expand Down Expand Up @@ -286,7 +286,7 @@ export default class Countdown extends React.Component<CountdownProps, Countdown
if (completedCallback) completedCallback(this.state.timeDelta);
};

return this.setState((prevState) => {
return this.setState(prevState => {
let newStatus = status || prevState.status;

if (timeDelta.completed && !this.props.overtime) {
Expand Down

0 comments on commit 5cf3453

Please sign in to comment.