mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-09 09:47:28 +03:00
Fix serversReducer test
This commit is contained in:
parent
44fb07840e
commit
88ad2e7fc2
1 changed files with 0 additions and 9 deletions
|
@ -105,15 +105,6 @@ describe('serversReducer', () => {
|
||||||
|
|
||||||
expect(payload).toEqual(list);
|
expect(payload).toEqual(list);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('generates an id for every provided server if they do not have it', () => {
|
|
||||||
const servers = Object.values(list).map(({ name, autoConnect, url, apiKey }) => (
|
|
||||||
{ name, autoConnect, url, apiKey }
|
|
||||||
));
|
|
||||||
const { payload } = createServers(servers);
|
|
||||||
|
|
||||||
expect(Object.values(payload).every(({ id }) => !!id)).toEqual(true);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('setAutoConnect', () => {
|
describe('setAutoConnect', () => {
|
||||||
|
|
Loading…
Reference in a new issue