mirror your GitHub repos to tangled.org automatically
1

Configure Feed

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

test: fix tests

+6 -2
+1 -1
server/utils/sync-ref.ts
··· 2 2 import { repoMapping } from '../db/schema' 3 3 import { useDb } from './db' 4 4 import { RemoteRejectedError, WireError } from './git-wire/errors' 5 + import { fetchAdvertisement } from './git-wire/upload-pack' 5 6 import { installationOctokit } from './github-app' 6 7 import { spliceDelete, splicePush } from './splice' 7 - import { fetchAdvertisement } from './git-wire/upload-pack' 8 8 9 9 export type RefType = 'branch' | 'tag' 10 10
+4 -1
test/unit/sync-ref.spec.ts
··· 14 14 const spliceDeleteMock = vi.fn<(params: Record<string, unknown>) => Promise<{ status: string }>>() 15 15 const octokitAuthMock = vi.fn<(input: { type: 'installation' }) => Promise<{ token: string }>>() 16 16 17 + vi.mock('../../server/utils/git-wire/upload-pack', () => ({ 18 + fetchAdvertisement: (repo: string, token: string) => fetchAdvertisementMock(repo, token), 19 + })) 20 + 17 21 vi.mock('../../server/utils/splice', () => ({ 18 - fetchAdvertisement: (repo: string, token: string) => fetchAdvertisementMock(repo, token), 19 22 splicePush: (params: Record<string, unknown>) => splicePushMock(params), 20 23 spliceDelete: (params: Record<string, unknown>) => spliceDeleteMock(params), 21 24 }))
+1
test/utils/git-wire.ts
··· 28 28 initBare(name: string): string { 29 29 const repo = path.join(this.dir, name) 30 30 this.git(['init', '-q', '--bare', repo]) 31 + this.git(['symbolic-ref', 'HEAD', 'refs/heads/__synchub_placeholder'], repo) 31 32 return repo 32 33 } 33 34