remove arrow functions from js tests (#1225)

This commit is contained in:
jacob
2018-08-21 14:30:14 -05:00
committed by Nicolás Venturo
parent 7618b91d9c
commit 64c324e37c
7 changed files with 34 additions and 34 deletions

View File

@ -13,7 +13,7 @@ contract('Superuser', function ([_, firstOwner, newSuperuser, newOwner, anyone])
this.superuser = await Superuser.new({ from: firstOwner });
});
context('in normal conditions', () => {
context('in normal conditions', function () {
it('should set the owner as the default superuser', async function () {
(await this.superuser.isSuperuser(firstOwner)).should.be.be.true;
});
@ -53,7 +53,7 @@ contract('Superuser', function ([_, firstOwner, newSuperuser, newOwner, anyone])
});
});
context('in adversarial conditions', () => {
context('in adversarial conditions', function () {
it('should prevent non-superusers from transfering the superuser role', async function () {
await expectThrow(
this.superuser.transferSuperuser(newOwner, { from: anyone })