Skip to content

Commit

Permalink
Fix test using invalid skill id
Browse files Browse the repository at this point in the history
  • Loading branch information
elenadimitrova committed Jul 10, 2018
1 parent 706996f commit 965ce4d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/meta-colony.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,13 @@ contract("Meta Colony", accounts => {
});

it("should NOT be able to add a new root local skill", async () => {
await checkErrorRevert(colonyNetwork.addSkill(0, false));
const skillCountBefore = await colonyNetwork.getSkillCount.call();
const rootDomain = await colony.getDomain(1);
const rootLocalSkillId = rootDomain[0].toNumber();
await checkErrorRevert(colonyNetwork.addSkill(rootLocalSkillId, false));
const skillCountAfter = await colonyNetwork.getSkillCount.call();

const skillCount = await colonyNetwork.getSkillCount.call();
assert.equal(skillCount.toNumber(), 4);
assert.equal(skillCountBefore.toNumber(), skillCountAfter.toNumber());
});
});

Expand Down

0 comments on commit 965ce4d

Please sign in to comment.