diff --git a/config.json b/config.json index 06e8f8ac..ed1bca6b 100644 --- a/config.json +++ b/config.json @@ -1,25 +1,16 @@ { - "defaultHomeserver": 0, - "homeserverList": [ - "gamecult.org", - "converser.eu", - "matrix.org", - "mozilla.org", - "unredacted.org", - "xmr.se" - ], + "defaultHomeserver": 1, + "homeserverList": ["converser.eu", "matrix.org", "mozilla.org", "unredacted.org", "xmr.se"], "allowCustomHomeservers": true, "featuredCommunities": { "openAsDefault": false, "spaces": ["#gamecult:gamecult.org"], - "rooms": ["#tuwunel:grin.hu", "#free-software-movement:matrix.org", "#gentoo:matrix.org"], - "servers": [ - "activematrixrooms.com", - "matrixrooms.info", - "matrix.org", - "mozilla.org", - "unredacted.org" - ] + "rooms": [ + "#tuwunel:grin.hu", + "#free-software-movement:matrix.org", + "#gentoo:matrix.org" + ], + "servers": ["activematrixrooms.com", "matrixrooms.info", "matrix.org", "mozilla.org", "unredacted.org"] }, "hashRouter": { @@ -33,10 +24,5 @@ "dings": { "enabled": false - }, - - "registration": { - "enabled": false, - "url": "" } } diff --git a/src/app/hooks/useClientConfig.test.ts b/src/app/hooks/useClientConfig.test.ts deleted file mode 100644 index a2004d2f..00000000 --- a/src/app/hooks/useClientConfig.test.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { describe, expect, it } from 'vitest'; -import { clientDefaultServer } from './useClientConfig'; -import config from '../../../config.json'; - -describe('default homeserver', () => { - it('is gamecult.org when the config names none', () => { - expect(clientDefaultServer({})).toBe('gamecult.org'); - expect(clientDefaultServer({ homeserverList: [] })).toBe('gamecult.org'); - }); - - it('is the listed server the config points at', () => { - expect( - clientDefaultServer({ homeserverList: ['chat.gamecult.org'], defaultHomeserver: 0 }) - ).toBe('chat.gamecult.org'); - }); - - it('is gamecult.org in the repo config.json too', () => { - expect(clientDefaultServer(config)).toBe('gamecult.org'); - }); -});