From 7ca0f08d581e7113aef396ad3f0d490aaa7024c2 Mon Sep 17 00:00:00 2001 From: Billy Stalnaker Date: Tue, 25 Mar 2025 13:56:40 -0400 Subject: [PATCH] update tests Signed-off-by: Billy Stalnaker --- plugins/notifications-backend/src/service/router.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/notifications-backend/src/service/router.test.ts b/plugins/notifications-backend/src/service/router.test.ts index 71d2502fae..0538e90697 100644 --- a/plugins/notifications-backend/src/service/router.test.ts +++ b/plugins/notifications-backend/src/service/router.test.ts @@ -310,6 +310,7 @@ describe.each(databases.eachSupportedId())('createRouter (%s)', databaseId => { it('should not send to user entity if origin is disabled in settings', async () => { const client = await database.getClient(); await client('user_settings').insert({ + settings_key_hash: 'hash', user: 'user:default/mock', channel: 'Web', origin: 'external:test-service', @@ -338,6 +339,7 @@ describe.each(databases.eachSupportedId())('createRouter (%s)', databaseId => { it('should not send to user entity if topic is disabled in settings', async () => { const client = await database.getClient(); await client('user_settings').insert({ + settings_key_hash: 'hash', user: 'user:default/mock', channel: 'Web', origin: 'external:test-service', @@ -368,12 +370,14 @@ describe.each(databases.eachSupportedId())('createRouter (%s)', databaseId => { it('should send to user entity if origin is enabled, but topic is disabled in settings', async () => { const client = await database.getClient(); await client('user_settings').insert({ + settings_key_hash: 'hash', user: 'user:default/mock', channel: 'Web', origin: 'external:test-service', enabled: true, }); await client('user_settings').insert({ + settings_key_hash: 'hash1', user: 'user:default/mock', channel: 'Web', origin: 'external:test-service', @@ -566,6 +570,7 @@ describe.each(databases.eachSupportedId())('createRouter (%s)', databaseId => { it('should return user settings', async () => { const client = await database.getClient(); await client('user_settings').insert({ + settings_key_hash: 'hash', user: 'user:default/mock', channel: 'Web', origin: 'external:test-service',