Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test("should have an aria-orientation if the orientation prop is passed", () => {
const renderedWithChildren: any = mount(
{children}
);
const renderedWithChildrenHorizontal: any = mount(
{children}
);
const renderedWithChildrenVertical: any = mount(
{children}
);
expect(renderedWithChildren.find("[aria-orientation]")).toHaveLength(0);
expect(
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);
});
label: "A set of example text content",
activeId: "tab03",
items: detailTabItem,
children: ["child 1", "child 2"],
},
data: [
{
...tabsManagedClasses,
label: "A set of example text content",
items: detailTabItem,
children: ["child 1", "child 2"],
},
{
...tabsManagedClasses,
label: "A set of example text content",
orientation: Orientation.horizontal,
items: exampleTabItem1,
},
{
/**
* @Deprecated 3.4.0
*/
...tabsManagedClasses,
activeId: "tab04",
label: "A set of example text content",
orientation: Orientation.horizontal,
children: exampleChildren1,
},
{
/**
* @Deprecated 3.4.0
*/
children: ["child 1", "child 2"],
},
{
...tabsManagedClasses,
label: "A set of example text content",
orientation: Orientation.horizontal,
items: exampleTabItem1,
},
{
/**
* @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
*/