Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End time default value #58

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

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.

initialTime = 0,
interval = 1000,
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