mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-05-08 12:40:16 +03:00
Prevented short URLs list to be reloaded when tags are edited
This commit is contained in:
parent
b5de9bf523
commit
680d80d753
4 changed files with 34 additions and 14 deletions
test/common
|
@ -1,6 +1,7 @@
|
|||
import { shallow } from 'enzyme'
|
||||
import React from 'react'
|
||||
import AsideMenu from '../../src/common/AsideMenu'
|
||||
import { NavLink } from 'react-router-dom';
|
||||
|
||||
describe('<AsideMenu />', () => {
|
||||
let wrapped;
|
||||
|
@ -12,10 +13,10 @@ describe('<AsideMenu />', () => {
|
|||
wrapped.unmount();
|
||||
});
|
||||
|
||||
it('contains links to selected server', () => {
|
||||
const links = wrapped.find('NavLink');
|
||||
it('contains links to different sections', () => {
|
||||
const links = wrapped.find(NavLink);
|
||||
|
||||
expect(links).toHaveLength(2);
|
||||
expect(links).toHaveLength(3);
|
||||
links.forEach(link => expect(link.prop('to')).toContain('abc123'));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue