mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-22 14:36:22 +00:00
Fixed tests
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { shallow } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
import asideMenuCreator from '../../src/common/AsideMenu';
|
||||
|
||||
describe('<AsideMenu />', () => {
|
||||
@@ -15,7 +14,7 @@ describe('<AsideMenu />', () => {
|
||||
afterEach(() => wrapped.unmount());
|
||||
|
||||
it('contains links to different sections', () => {
|
||||
const links = wrapped.find(NavLink);
|
||||
const links = wrapped.find('[to]');
|
||||
|
||||
expect(links).toHaveLength(3);
|
||||
links.forEach((link) => expect(link.prop('to')).toContain('abc123'));
|
||||
|
||||
Reference in New Issue
Block a user