Fixed tests

This commit is contained in:
Alejandro Celaya
2022-02-14 20:04:38 +01:00
parent f24c8052a9
commit ae9e5a0566
3 changed files with 17 additions and 4 deletions

View File

@@ -35,6 +35,8 @@ describe('<MainHeader />', () => {
[ '/foo', false ],
[ '/bar', false ],
[ '/settings', true ],
[ '/settings/foo', true ],
[ '/settings/bar', true ],
])('sets link to settings as active only when current path is settings', (currentPath, isActive) => {
const wrapper = createWrapper(currentPath);
const settingsLink = wrapper.find(NavLink);