We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a30f08 commit 09ebaacCopy full SHA for 09ebaac
stories/timers/Stopwatch.story.js
@@ -5,4 +5,20 @@ import Stopwatch from '../../src/timers/Stopwatch';
5
storiesOf('Timers', module)
6
.add('StopWatch', () => (
7
<Stopwatch />
8
- ));
+ ))
9
+ .add('StopWatch with custom time at 1:40', () => {
10
+ const startTime = new Date();
11
+ const aMinuteAgo = startTime.getTime() - 100000;
12
+ startTime.setTime(aMinuteAgo);
13
+ return (
14
+ <Stopwatch start={startTime}/>
15
+ );
16
+ })
17
+ .add('StopWatch with custom time hour at 2:46:40', () => {
18
19
+ const aMinuteAgo = startTime.getTime() - 10000000;
20
21
22
23
24
+ });
0 commit comments