mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-03 06:11:48 +00:00
Improved settings section names
This commit is contained in:
@@ -22,8 +22,8 @@ describe('<Settings />', () => {
|
||||
const items = wrapper.find(NavPillItem);
|
||||
|
||||
expect(items).toHaveLength(3);
|
||||
expect(items.first().prop('to')).toEqual('app');
|
||||
expect(items.first().prop('to')).toEqual('general');
|
||||
expect(items.at(1).prop('to')).toEqual('short-urls');
|
||||
expect(items.last().prop('to')).toEqual('others');
|
||||
expect(items.last().prop('to')).toEqual('secondary-items');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -17,9 +17,13 @@ describe('<NavPills />', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('renders provided items', () => {
|
||||
it.each([
|
||||
[ undefined ],
|
||||
[ true ],
|
||||
[ false ],
|
||||
])('renders provided items', (fill) => {
|
||||
const wrapper = shallow(
|
||||
<NavPills>
|
||||
<NavPills fill={fill}>
|
||||
<NavPillItem to="1">1</NavPillItem>
|
||||
<NavPillItem to="2">2</NavPillItem>
|
||||
<NavPillItem to="3">3</NavPillItem>
|
||||
@@ -32,6 +36,6 @@ describe('<NavPills />', () => {
|
||||
expect(card.prop('body')).toEqual(true);
|
||||
expect(nav).toHaveLength(1);
|
||||
expect(nav.prop('pills')).toEqual(true);
|
||||
expect(nav.prop('fill')).toEqual(true);
|
||||
expect(nav.prop('fill')).toEqual(!!fill);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user