mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-02 04:43:58 +00:00
fix(agentstack): reject malformed CoinPay DIDs (#83)
This commit is contained in:
parent
895bb9989e
commit
2f07f74126
2 changed files with 15 additions and 12 deletions
|
|
@ -26,11 +26,12 @@ describe("DID helpers", () => {
|
|||
expect(parseDid(agentDid("abc"))).toEqual({ kind: "agent", id: "abc" });
|
||||
});
|
||||
|
||||
it("rejects non-CoinPay DIDs", () => {
|
||||
expect(parseDid("did:web:example.com")).toBeNull();
|
||||
expect(parseDid("did:coinpay:bot:abc")).toBeNull();
|
||||
});
|
||||
});
|
||||
it("rejects non-CoinPay DIDs", () => {
|
||||
expect(parseDid("did:web:example.com")).toBeNull();
|
||||
expect(parseDid("did:coinpay:bot:abc")).toBeNull();
|
||||
expect(parseDid("did:coinpay:user:abc:extra")).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe("AgentStack manifest", () => {
|
||||
it("is a valid LogicSRC plugin manifest", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue