Skip to content

Commit ec08e39

Browse files
author
Pascal Wegner
committed
Update core package tests
1 parent 970382a commit ec08e39

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/core/src/hooks/useTimerMachine.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* istanbul ignore file */
2+
/* covered by app integration test */
13
import { useMachine } from '@xstate/react';
24

35
import { timerMachine } from '../machine/timerMachine';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { toTwoDigitString } from '../toTwoDigitString';
2+
3+
describe('toTwoDigitString()', () => {
4+
it('should return two digit string', () => {
5+
expect(toTwoDigitString(3)).toBe('03');
6+
expect(toTwoDigitString(30)).toBe('30');
7+
});
8+
});

0 commit comments

Comments
 (0)