Skip to content

Commit

Permalink
Merge pull request #97 from Alien-Worlds/DEMZNE-1148_Fix-stakevote-tests
Browse files Browse the repository at this point in the history
fix stakevote tests
  • Loading branch information
angelol authored Nov 24, 2022
2 parents 480a6d0 + e066b1a commit 19081be
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions contracts/stakevote/stakevote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,13 @@ describe('Stakevote', () => {
});
});
it('before voting, total_weight_of_votes should be zero', async () => {
const x = await get_from_dacglobals(dacId, 'total_weight_of_votes');
chai.expect(x).to.equal(0);
let dacState = await shared.daccustodian_contract.dacglobalsTable({
scope: dacId,
});
const res = dacState.rows[0].data.find(
(x) => x.key === 'total_weight_of_votes'
);
chai.expect(res).to.be.undefined;
});
it('should create weights table entries', async () => {
const expected_weight = await get_expected_vote_weight(
Expand Down

0 comments on commit 19081be

Please sign in to comment.