Skip to content

Commit

Permalink
test: Update error codes for set-protocol-treasury and set-voting-tok…
Browse files Browse the repository at this point in the history
…en tests
  • Loading branch information
whoabuddy committed Dec 24, 2024
1 parent 3cce1e1 commit 7bead9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/dao/extensions/aibtc-ext001-actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe("aibtc-ext001-actions", () => {
[Cl.contractPrincipal(addressDeployer, "test-treasury")],
address1
);
expect(receipt.result).toBeErr(Cl.uint(ErrCode.ERR_UNAUTHORIZED));
expect(receipt.result).toBeErr(Cl.uint(ErrCode.ERR_NOT_DAO_OR_EXTENSION));
});

it("fails if treasury is not a contract", () => {
Expand Down Expand Up @@ -128,7 +128,7 @@ describe("aibtc-ext001-actions", () => {
[Cl.contractPrincipal(addressDeployer, "test-token")],
address1
);
expect(receipt.result).toBeErr(Cl.uint(ErrCode.ERR_UNAUTHORIZED));
expect(receipt.result).toBeErr(Cl.uint(ErrCode.ERR_NOT_DAO_OR_EXTENSION));
});

it("fails if token is not a contract", () => {
Expand Down

0 comments on commit 7bead9e

Please sign in to comment.