Skip to content

Commit

Permalink
fix Pluto.test PeerDID to pass regex
Browse files Browse the repository at this point in the history
  • Loading branch information
curtis-h committed Dec 8, 2023
1 parent 3aa1857 commit 53c1ed5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/pluto/Pluto.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const PlutoImplementations = [PlutoTypes.inMemory];

describe.each(PlutoImplementations)("Pluto", (plutoType: PlutoTypes) => {
let instance: any;
const peerDid = DID.fromString("did:peer:2.Ez6LSpkDMdriCqDZD3ocyuwxEwjK2B586azEHZ8Q5w89Bpcdu.Vz6MkrJGkf5SZqZpoaSNnyAM1wBebxWDW6omvDSgPv9WgDE5K.SW10");


beforeEach(async () => {
if (plutoType === "in-memory") {
Expand All @@ -36,7 +38,7 @@ describe.each(PlutoImplementations)("Pluto", (plutoType: PlutoTypes) => {
// Secp256k1PrivateKey
].forEach((keyClass) => {
test(`${keyClass.name}`, async () => {
const peerDid = DID.fromString("did:peer:3i21d");

const raw = Buffer.from(
"76735a33485f497970546b7978646f466272346f657447746f53496363782d614330365f474f53577a7273",
"hex"
Expand Down Expand Up @@ -371,7 +373,6 @@ describe.each(PlutoImplementations)("Pluto", (plutoType: PlutoTypes) => {
});
//
it("should get all peer DIDs", async function () {
const peerDid = DID.fromString("did:peer:3i21d");
const privateKey1: PrivateKey = new Ed25519PrivateKey(
Buffer.from("01011010011101010100011000100010")
);
Expand Down

0 comments on commit 53c1ed5

Please sign in to comment.