Skip to content

Commit

Permalink
Update tests after contract cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RCantu92 committed Jun 27, 2023
1 parent d07aa85 commit 4e73980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/components/agents.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ describe('Agent Registry', function () {
describe('special case bots', async function () {
it('free trial bot', async function () {
expect(await this.agents.getFreeTrialAgentUnitsLimit()).to.be.equal(0);
await expect(this.agents.connect(this.accounts.admin).setFreeTrialAgentUnits(99))
await expect(this.agents.connect(this.accounts.manager).setFreeTrialAgentUnits(99))
.to.emit(this.agents, 'FreeTrailAgentUnitsUpdated')
.withArgs(99);
expect(await this.agents.getFreeTrialAgentUnitsLimit()).to.be.equal(99);
Expand Down Expand Up @@ -1571,9 +1571,9 @@ describe('Agent Registry', function () {
expect(await this.agents.getFreeTrialAgentUnitsLimit()).to.be.equal(0);

await expect(this.agents.connect(this.accounts.other).setFreeTrialAgentUnits(99))
.to.be.revertedWith(`MissingRole("${this.roles.FREE_TRIAL_ADMIN}", "${this.accounts.other.address}")`);
.to.be.revertedWith(`MissingRole("${this.roles.AGENT_ADMIN}", "${this.accounts.other.address}")`);

await expect(this.agents.connect(this.accounts.admin).setFreeTrialAgentUnits(99))
await expect(this.agents.connect(this.accounts.manager).setFreeTrialAgentUnits(99))
.to.emit(this.agents, 'FreeTrailAgentUnitsUpdated')
.withArgs(99);

Expand Down

0 comments on commit 4e73980

Please sign in to comment.