mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
Merge branch 'main' into versions/next-major
This commit is contained in:
@@ -83,8 +83,8 @@ describe('A StorageDescriptionHandler', (): void => {
|
||||
expect(result.metadata?.contentType).toBe('internal/quads');
|
||||
expect(result.data).toBeDefined();
|
||||
const quads = await readableToQuads(result.data!);
|
||||
expect(quads.countQuads(operation.target.path, RDF.terms.type, PIM.terms.Storage, null)).toBe(1);
|
||||
expect(quads.countQuads('http://example.com/', RDF.terms.type, PIM.terms.Storage, null)).toBe(1);
|
||||
expect(describer.handle).toHaveBeenCalledTimes(1);
|
||||
expect(describer.handle).toHaveBeenLastCalledWith(operation.target);
|
||||
expect(describer.handle).toHaveBeenLastCalledWith({ path: 'http://example.com/' });
|
||||
});
|
||||
});
|
||||
|
||||
@@ -43,14 +43,14 @@ describe('A WebhookChannel2023Type', (): void => {
|
||||
|
||||
beforeEach(async(): Promise<void> => {
|
||||
data = new Store();
|
||||
data.addQuad(quad(subject, RDF.terms.type, NOTIFY.terms.WebHookChannel2023));
|
||||
data.addQuad(quad(subject, RDF.terms.type, NOTIFY.terms.WebhookChannel2023));
|
||||
data.addQuad(quad(subject, NOTIFY.terms.topic, namedNode(topic)));
|
||||
data.addQuad(quad(subject, NOTIFY.terms.sendTo, namedNode(sendTo)));
|
||||
|
||||
const id = 'http://example.com/webhooks/4c9b88c1-7502-4107-bb79-2a3a590c7aa3';
|
||||
channel = {
|
||||
id,
|
||||
type: NOTIFY.WebHookChannel2023,
|
||||
type: NOTIFY.WebhookChannel2023,
|
||||
topic: 'https://storage.example/resource',
|
||||
sendTo,
|
||||
};
|
||||
@@ -79,7 +79,7 @@ describe('A WebhookChannel2023Type', (): void => {
|
||||
CONTEXT_NOTIFICATION,
|
||||
],
|
||||
id: channel.id,
|
||||
type: NOTIFY.WebHookChannel2023,
|
||||
type: NOTIFY.WebhookChannel2023,
|
||||
sendTo,
|
||||
topic,
|
||||
sender: 'http://example.com/webhooks/webid',
|
||||
|
||||
@@ -45,7 +45,7 @@ describe('A WebHookEmitter', (): void => {
|
||||
const channel: WebhookChannel2023 = {
|
||||
id: 'id',
|
||||
topic: 'http://example.com/foo',
|
||||
type: NOTIFY.WebHookChannel2023,
|
||||
type: NOTIFY.WebhookChannel2023,
|
||||
sendTo: 'http://example.org/somewhere-else',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user