refactor: Rename subscription to notification channel

This commit is contained in:
Joachim Van Herwegen
2023-01-24 14:42:24 +01:00
parent 7c343a5fcc
commit 61f04487a1
51 changed files with 462 additions and 449 deletions

View File

@@ -1,15 +1,15 @@
import { BasicRepresentation } from '../../../../../src/http/representation/BasicRepresentation';
import type { Representation } from '../../../../../src/http/representation/Representation';
import type { Notification } from '../../../../../src/server/notifications/Notification';
import type { NotificationChannelInfo } from '../../../../../src/server/notifications/NotificationChannelStorage';
import {
ConvertingNotificationSerializer,
} from '../../../../../src/server/notifications/serialize/ConvertingNotificationSerializer';
import type { NotificationSerializer } from '../../../../../src/server/notifications/serialize/NotificationSerializer';
import type { SubscriptionInfo } from '../../../../../src/server/notifications/SubscriptionStorage';
import type { RepresentationConverter } from '../../../../../src/storage/conversion/RepresentationConverter';
describe('A ConvertingNotificationSerializer', (): void => {
let info: SubscriptionInfo;
let info: NotificationChannelInfo;
const notification: Notification = {
'@context': [
'https://www.w3.org/ns/activitystreams',