Created SortableBarGraph test

This commit is contained in:
Alejandro Celaya
2019-01-12 23:47:41 +01:00
parent c2ee688176
commit 4f8c7afc76
5 changed files with 95 additions and 8 deletions

View File

@@ -14,18 +14,21 @@ export const listServers = (serversService) => () => ({
servers: serversService.listServers(),
});
// FIXME listServers action should be injected and not directly invoked
export const createServer = (serversService) => (server) => {
serversService.createServer(server);
return listServers(serversService)();
};
// FIXME listServers action should be injected and not directly invoked
export const deleteServer = (serversService) => (server) => {
serversService.deleteServer(server);
return listServers(serversService)();
};
// FIXME listServers action should be injected and not directly invoked
export const createServers = (serversService) => (servers) => {
serversService.createServers(servers);