Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
>
{children}
);
expect(renderedWithChildren.find("[aria-orientation]")).toHaveLength(0);
expect(
renderedWithChildrenHorizontal.find("[aria-orientation]").props()[
"aria-orientation"
]
).toBe(Orientation.horizontal);
expect(
renderedWithChildrenVertical.find("[aria-orientation]").props()[
"aria-orientation"
]
).toBe(Orientation.vertical);
});
* @Deprecated 3.4.0
*/
...tabsManagedClasses,
activeId: "tab04",
label: "A set of example text content",
orientation: Orientation.horizontal,
children: exampleChildren1,
},
{
/**
* @Deprecated 3.4.0
*/
...tabsManagedClasses,
activeId: "tab03",
label: "A set of example text content",
orientation: Orientation.vertical,
children: exampleChildren2,
},
{
/**
* @Deprecated 3.4.0
*/
...tabsManagedClasses,
label: "A set of example text content",
children: exampleChildren3,
},
{
/**
* @Deprecated 3.4.0
*/
...tabsManagedClasses,
label: "A set of example text content",
);
const renderedWithChildrenHorizontal: any = mount(
{children}
);
const renderedWithChildrenVertical: any = mount(
{children}
);
expect(renderedWithChildren.find("[aria-orientation]")).toHaveLength(0);
expect(
renderedWithChildrenHorizontal.find("[aria-orientation]").props()[
"aria-orientation"
]
).toBe(Orientation.horizontal);
expect(
renderedWithChildrenVertical.find("[aria-orientation]").props()[
"aria-orientation"
]
).toBe(Orientation.vertical);