quickly upload files to a remote server via rsync
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: replace hardcoded domains with generic placeholders

eti a50305e2 5af30e2e

+6 -6
+4 -4
src/config.test.ts
··· 6 6 // This test would need to mock the actual config path 7 7 // For now, we test the structure 8 8 const defaultConfig: Config = { 9 - server: "user@your-server.com", 9 + server: "user@domain.tld", 10 10 remotePath: "/home/user/serve/x", 11 - baseUrl: "https://x.eti.tf", 11 + baseUrl: "https://domain.tld", 12 12 }; 13 13 14 - expect(defaultConfig.server).toBe("user@your-server.com"); 14 + expect(defaultConfig.server).toBe("user@domain.tld"); 15 15 expect(defaultConfig.remotePath).toBe("/home/user/serve/x"); 16 - expect(defaultConfig.baseUrl).toBe("https://x.eti.tf"); 16 + expect(defaultConfig.baseUrl).toBe("https://domain.tld"); 17 17 }); 18 18 19 19 test("valid config structure has required fields", () => {
+2 -2
src/config.ts
··· 13 13 const CONFIG_PATH = join(CONFIG_DIR, "config.json"); 14 14 15 15 const DEFAULT_CONFIG: Config = { 16 - server: "user@your-server.com", 16 + server: "user@domain.tld", 17 17 remotePath: "/home/user/serve/x", 18 - baseUrl: "https://x.eti.tf", 18 + baseUrl: "https://domain.tld", 19 19 }; 20 20 21 21 const CONFIG_TEMPLATE = JSON.stringify(DEFAULT_CONFIG, null, 2);