mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
update components tests to use mountWithContexts when relevant
This commit is contained in:
@@ -39,7 +39,7 @@ describe('NavExpandableGroup', () => {
|
||||
];
|
||||
|
||||
params.forEach(([location, path, expected]) => {
|
||||
test(`when location is ${location}', isActivePath('${path}') returns ${expected} `, () => {
|
||||
test(`when location is ${location}, isActivePath('${path}') returns ${expected} `, () => {
|
||||
const component = mount(
|
||||
<MemoryRouter initialEntries={[location]}>
|
||||
<Nav aria-label="Test Navigation">
|
||||
|
||||
Reference in New Issue
Block a user