We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3efdd8a commit 096751eCopy full SHA for 096751e
src/index.test.tsx
@@ -149,20 +149,3 @@ test('inline composition using <Adopt> component', () => {
149
expect(result.children().length).toBe(1)
150
expect(result.html()).toBe('<div>foo</div>')
151
})
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