Skip to content

Commit 096751e

Browse files
committed
chore: remove unnescessary test case
1 parent 3efdd8a commit 096751e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/index.test.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,3 @@ test('inline composition using <Adopt> component', () => {
149149
expect(result.children().length).toBe(1)
150150
expect(result.html()).toBe('<div>foo</div>')
151151
})
152-
153-
test('changing <Adopt> properties on the fly', () => {
154-
const Foo = ({ children, value }) => children(value)
155-
const children = jest.fn(({ foo }) => <div>{foo}</div>)
156-
157-
const Component = ({ value }) => (
158-
<Adopt mapper={{ foo: <Foo value={value} /> }}>
159-
{({ foo }) => <div>{foo}</div>}
160-
</Adopt>
161-
)
162-
163-
const wrapper = mount(<Component value="foo" />)
164-
165-
expect(wrapper.text()).toBe('foo')
166-
wrapper.setProps({ value: 'bar' })
167-
expect(wrapper.text()).toBe('bar')
168-
})

0 commit comments

Comments
 (0)