Skip to content

Commit a862289

Browse files
committed
Fix broken test.
1 parent 5c5f165 commit a862289

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/__tests__/Time/AmPmSwitcher.test.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
import * as React from 'react'
22

33
import renderer from 'react-test-renderer'
4+
import { inputTypes } from '../../Time/timeUtils'
45
import AmPmSwitcher from '../../Time/AmPmSwitcher'
56

67
it('renders AmPmSwitcher', () => {
78
const tree = renderer
8-
.create(<AmPmSwitcher hours={12} onChange={() => null} />)
9+
.create(
10+
<AmPmSwitcher
11+
hours={12}
12+
onChange={() => null}
13+
inputType={inputTypes.keyboard}
14+
/>
15+
)
916
.toJSON()
1017

1118
expect(tree).toMatchSnapshot()

src/__tests__/Time/__snapshots__/AmPmSwitcher.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ exports[`renders AmPmSwitcher 1`] = `
1212
{
1313
"borderColor": "rgba(121, 116, 126, 1)",
1414
"borderRadius": 8,
15-
"height": 80,
16-
"marginBottom": 0,
15+
"height": 72,
16+
"marginBottom": 24,
1717
},
1818
]
1919
}

0 commit comments

Comments
 (0)