Skip to content

Conversation

@dancheskus
Copy link

  • default endTime value changes depending on timer mode
  • added test
  • changed Readme.md

);
};
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example is not related to the rest of the PR. I would advise against it.

fireEvent.click(getByRole('button'));

act(() => {
jest.advanceTimersByTime(30000);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to advance time by more than 30000 to really test that the timer will stop at 0. I would replace 30000 by 40000 for example.

onTimeOver,
onTimeUpdate,
step = 1,
timerType = 'INCREMENTAL',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep the alphabetical order of properties, to keep the author's logic.

@eddsaura
Copy link

Hey, can we push this? Should I fix the reviews?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants