Skip to content

Commit

Permalink
feat: added referendum contract
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Jul 29, 2024
1 parent 132e50d commit f659c07
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/Syndication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ describe("Syndication", function () {
const fees = hre.ethers.parseUnits('0.3', 'ether'); // expected fees paid in contract..
const [owner,] = await getAccounts();

const distributor: string = await loadFixture(deployDistributor)
const syndication = await loadFixture(deployInitializedSyndication)
// const registeredDistributor = await distributorRegisteredWithLastEvent(syndication)
await syndication.register(distributor, { value: fees })
await syndication.quit(distributor);
expect(await syndication.quit(distributor)).to.emit(syndication, 'Resigned')

});

it("Should retain the correct penalty amount after quit.", async function () {
const fees = hre.ethers.parseUnits('0.3', 'ether'); // expected fees paid in contract..

const distributor: string = await loadFixture(deployDistributor)
const syndication = await loadFixture(deployInitializedSyndication)
// const registeredDistributor = await distributorRegisteredWithLastEvent(syndication)
Expand All @@ -71,9 +83,6 @@ describe("Syndication", function () {
// the contract keep the 10%
expect(afterQuitBalance).to.be.equal(penal);




});


Expand Down

0 comments on commit f659c07

Please sign in to comment.