Update activitypub.ts

This commit is contained in:
syuilo 2025-05-28 19:50:46 +09:00
parent 4a4f0f5579
commit cb7d9f666b
1 changed files with 2 additions and 2 deletions

View File

@ -121,10 +121,10 @@ describe('ActivityPub', () => {
imports: [GlobalModule, CoreModule], imports: [GlobalModule, CoreModule],
}) })
.overrideProvider(DownloadService).useValue({ .overrideProvider(DownloadService).useValue({
async downloadUrl(url, path): Promise<{ filename: string }> { async downloadUrl(url: string, path: string): Promise<{ filename: string }> {
if (url.endsWith('.png')) { if (url.endsWith('.png')) {
fs.copyFileSync( fs.copyFileSync(
`${__dirname}/../resources/hw.png`, '../resources/hw.png',
path, path,
); );
} }