Skip to content

Commit

Permalink
bug fix added test to expect revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ryley-o committed Jan 4, 2023
1 parent 0dbc941 commit 722b12d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/core/V3/GenArt721CoreV3_Integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,5 +595,17 @@ for (const coreContractName of coreContractsToTest) {
);
});
});

describe("onlyValidProjectId", function () {
it("does not allow invalid project when using onlyValidProjectId modifier", async function () {
// mint token zero so it is a valid token
await expectRevert(
this.genArt721Core
.connect(this.accounts.deployer)
.toggleProjectIsActive(999),
"Project ID does not exist"
);
});
});
});
}

0 comments on commit 722b12d

Please sign in to comment.