summaryrefslogtreecommitdiff
path: root/packages/backend/test
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-06 22:03:53 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-06-09 11:03:51 -0400
commit424e163c6f305830fe2b8aeb6c9fecc2bf93c61a (patch)
treeca2fbae5320499f90d12f16215a2033780c7f85a /packages/backend/test
parentoutput log messages with correct level (diff)
downloadsharkey-424e163c6f305830fe2b8aeb6c9fecc2bf93c61a.tar.gz
sharkey-424e163c6f305830fe2b8aeb6c9fecc2bf93c61a.tar.bz2
sharkey-424e163c6f305830fe2b8aeb6c9fecc2bf93c61a.zip
fix type errors with JsonLdService and remove unused factory pattern
Diffstat (limited to 'packages/backend/test')
-rw-r--r--packages/backend/test/unit/activitypub.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/backend/test/unit/activitypub.ts b/packages/backend/test/unit/activitypub.ts
index 94dec16401..9abbb3e7a6 100644
--- a/packages/backend/test/unit/activitypub.ts
+++ b/packages/backend/test/unit/activitypub.ts
@@ -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,