Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
twallnerWaretec committed Jun 25, 2024
1 parent f69d980 commit db90e69
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/repco-core/src/datasources/activitypub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,10 @@ export class ActivityPubDataSource
contentJson[lang] = {
value: video.content,
}
var contentUrlsJson: { [k: string]: any } = {}
contentJson[lang] = {
value: video.url[0].href,
}

const content: form.ContentItemInput = {
title: titleJson,
Expand All @@ -688,7 +692,7 @@ export class ActivityPubDataSource
MediaAssets: mediaAssetUris,
PrimaryGrouping: this._uriLink('account', this.account),
summary: {},
contentUrl: {},
contentUrl: contentUrlsJson,
originalLanguages: {},
removed: false,
}
Expand Down
2 changes: 2 additions & 0 deletions packages/repco-core/test/car.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function mkinput(i: number) {
subtitle: 'asdf',
summary: 'yoo',
contentUrl: 'url',
removed: false,
originalLanguages: {},
},
}
return input
Expand Down
4 changes: 3 additions & 1 deletion packages/repco-core/test/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ test('simple sync', async (assert) => {
content: 'hello',
subtitle: 'asdf',
summary: 'yoo',
contentUrl: 'url',
contentUrl: {},
removed: false,
originalLanguages: {},
},
}
await repo1.saveEntity(input)
Expand Down
2 changes: 2 additions & 0 deletions packages/repco-server/test/smoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ async function createTestRepo(prisma: PrismaClient) {
subtitle: 'asdf',
summary: 'yoo',
contentUrl: 'url',
removed: false,
originalLanguages: {},
},
}
await repo.saveEntity('me', input)
Expand Down

0 comments on commit db90e69

Please sign in to comment.