Added more improvements to landing page

This commit is contained in:
Alejandro Celaya
2021-07-12 12:05:33 +02:00
parent 0789494a40
commit 8045fa8886
4 changed files with 17 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ describe('<Home />', () => {
},
0,
],
[{}, 2 ],
[{}, 3 ],
])('shows link to create or set-up server only when no servers exist', (servers, expectedParagraphs) => {
const wrapped = createComponent({ servers });
const p = wrapped.find('p');

View File

@@ -43,6 +43,6 @@ describe('<ServersDropdown />', () => {
expect(item).toHaveLength(1);
expect(item.prop('to')).toEqual('/server/create');
expect(item.find('span').text()).toContain('Add server');
expect(item.find('span').text()).toContain('Add a server');
});
});