Skip to content

Commit 5c93432

Browse files
committed
test: (todo) add pseudo code for new test
1 parent 3651f29 commit 5c93432

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { render, fireEvent } from '@testing-library/react'
2+
import { render } from '@testing-library/react'
33
import VersionSelector from '../../../components/common/VersionSelector'
44

55
it('renders without crashing', () => {
@@ -8,10 +8,11 @@ it('renders without crashing', () => {
88
expect(container).toMatchSnapshot()
99
})
1010

11-
// it('renders without crashing2', () => {
12-
// const { debug, getByText } = render(<VersionSelector />)
13-
// debug()
14-
// fireEvent.change(getByText("What's your current React Native version?"), {
15-
// target: { value: 'a' }
16-
// })
17-
// })
11+
it.skip('triggers the action on button press', () => {
12+
// TODO / pseudocode:
13+
// mock the fetch call for the versions
14+
// render(<VersionSelector />)
15+
// fire an event on FromVersionSelector and ToVersionSelector to choose versions
16+
// fire an event to click on the `upgradeButtonEl` button
17+
// expect that `onShowDiff` method has been called
18+
})

0 commit comments

Comments
 (0)