Skip to content

Commit

Permalink
Updated Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
toledoroy committed Jun 17, 2022
1 parent f20eb0c commit c253aeb
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,21 +358,12 @@ describe("Protocol", function () {
});

it("Admin can Assign Roles to Lost-Souls", async function () {

// let unOwnedAccount = await avatarContract.ownerOf(unOwnedTokenId);
// console.log("Unowned Token Address", unOwnedTokenId, unOwnedAccount);
// console.log("Avatar Contaract Address", avatarContract.address);

// let testerAddr = await tester.getAddress();
//Check Before
// expect(await this.jurisdictionContract.roleHas(this.judgeAddr, "judge")).to.equal(false);
expect(await this.jurisdictionContract.roleHasByToken(unOwnedTokenId, "judge")).to.equal(false);
//Assign Judge
await this.jurisdictionContract.connect(admin).roleAssignToToken(unOwnedTokenId, "judge")
//Check After
// expect(await this.jurisdictionContract.roleHas(this.judgeAddr, "judge")).to.equal(true);

//TODO: Role Check by Token ID

expect(await this.jurisdictionContract.roleHasByToken(unOwnedTokenId, "judge")).to.equal(true);
});

it("Can change Roles (Promote / Demote)", async function () {
Expand Down

0 comments on commit c253aeb

Please sign in to comment.