Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
vrde committed Nov 1, 2023
1 parent 4d78acf commit 901de5d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion test/ResolutionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ describe("Resolution", async () => {
});

describe("createResolutionWithExclusion", async () => {
it("allows to create an addressable resolution", async () => {
it("allows to create a resolution to exclude an address from voting", async () => {
await expect(
resolution
.connect(managingBoard)
Expand All @@ -247,6 +247,20 @@ describe("Resolution", async () => {
.withArgs(managingBoard.address, resolutionId);
});

it.only("doesn't allow to create a resolution to exclude an address that is not a contributor from votin", async () => {
await expect(
resolution
.connect(managingBoard)
.createResolutionWithExclusion(
"test",
0,
[],
[],
nonContributor.address
)
).revertedWith("Resolution: address is not a contributor");
});

it("doesn't allow non contributors to create an addressable resolution", async () => {
await expect(
resolution
Expand Down

0 comments on commit 901de5d

Please sign in to comment.