Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit a260f32

Browse files
chore(tests): fix failing Container test
1 parent 63feb8a commit a260f32

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

__tests__/Container.test.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,7 @@ describe('<Container/>', () => {
2929
describe('when terminal is true', () => {
3030
it('should contains a decorators.Header into their children', () => {
3131
const wrapper = renderComponent({terminal: true});
32-
expect(
33-
wrapper
34-
.children()
35-
.contains(
36-
<decorators.Header node={data} style={style.tree.node.header}/>
37-
)
38-
).toBe(true);
32+
expect(wrapper.find('Header').dive().text()).toBe('react-treebeard');
3933
});
4034
});
4135
describe('when terminal is false', () => {

0 commit comments

Comments
 (0)