fix(test): pass explicit did to seedWebhook in CRUD test
All checks were successful
CI / check (push) Successful in 15s
All checks were successful
CI / check (push) Successful in 15s
The webhook CRUD test combined an explicit did:plc:user webhook
with seedWebhook calls that defaulted to did:plc:test, so
listWebhooksByDid("did:plc:user") only returned the one
explicit row instead of three.
This commit is contained in:
@@ -99,8 +99,16 @@ Deno.test(
|
||||
assertEquals(created.token, undefined);
|
||||
assertEquals(created.url, "https://example.com/a");
|
||||
|
||||
seedWebhook({ url: "https://example.com/b", verb: "create" });
|
||||
seedWebhook({ url: "https://example.com/c", verb: "delete" });
|
||||
seedWebhook({
|
||||
did: "did:plc:user",
|
||||
url: "https://example.com/b",
|
||||
verb: "create",
|
||||
});
|
||||
seedWebhook({
|
||||
did: "did:plc:user",
|
||||
url: "https://example.com/c",
|
||||
verb: "delete",
|
||||
});
|
||||
|
||||
const list = listWebhooksByDid("did:plc:user");
|
||||
assertEquals(list.length, 3);
|
||||
|
||||
Reference in New Issue
Block a user