import test from 'brittle' import { fetchComposeFromGit } from '../server/utils/gitops.js' test('fetchComposeFromGit rejects bad URLs', async (t) => { await t.exception(() => fetchComposeFromGit({ repoUrl: '' })) await t.exception(() => fetchComposeFromGit({ repoUrl: 'ftp://evil' })) await t.exception(() => fetchComposeFromGit({ repoUrl: 'https://example.com/x.git', composePath: '../etc/passwd', }) ) })