Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robsecord committed Jul 28, 2020
1 parent 4496f30 commit 1714e10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/PrizeStrategy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ describe('PrizeStrategy', function() {

describe('setRngService', () => {
it('should only allow the owner to change it', async () => {
await expect(prizeStrategy.setRngService(token.address)).to.not.be.revertedWith('Ownable: caller is not the owner')
await expect(prizeStrategy.setRngService(token.address))
.to.emit(prizeStrategy, 'RngServiceUpdated')
.withArgs(token.address)
})

it('should not allow anyone but the owner to change', async () => {
Expand Down

0 comments on commit 1714e10

Please sign in to comment.