fix type errors with JsonLdService and remove unused factory pattern

This commit is contained in:
Hazelnoot 2025-06-06 22:03:53 -04:00
parent d0ae76214c
commit 424e163c6f
4 changed files with 54 additions and 44 deletions

View file

@ -473,8 +473,6 @@ describe('ActivityPub', () => {
describe('JSON-LD', () => {
test('Compaction', async () => {
const jsonLd = jsonLdService.use();
const object = {
'@context': [
'https://www.w3.org/ns/activitystreams',
@ -493,7 +491,7 @@ describe('ActivityPub', () => {
unknown: 'test test bar',
undefined: 'test test baz',
};
const compacted = await jsonLd.compact(object);
const compacted = await jsonLdService.compact(object);
assert.deepStrictEqual(compacted, {
'@context': CONTEXT,