No longer assigning awaits to temporary variables. (#1216)
This commit is contained in:
@ -16,25 +16,21 @@ contract('Math', function () {
|
||||
|
||||
describe('max', function () {
|
||||
it('is correctly detected in first argument position', async function () {
|
||||
const result = await this.math.max(max, min);
|
||||
result.should.be.bignumber.equal(max);
|
||||
(await this.math.max(max, min)).should.be.bignumber.equal(max);
|
||||
});
|
||||
|
||||
it('is correctly detected in second argument position', async function () {
|
||||
const result = await this.math.max(min, max);
|
||||
result.should.be.bignumber.equal(max);
|
||||
(await this.math.max(min, max)).should.be.bignumber.equal(max);
|
||||
});
|
||||
});
|
||||
|
||||
describe('min', function () {
|
||||
it('is correctly detected in first argument position', async function () {
|
||||
const result = await this.math.min(min, max);
|
||||
result.should.be.bignumber.equal(min);
|
||||
(await this.math.min(min, max)).should.be.bignumber.equal(min);
|
||||
});
|
||||
|
||||
it('is correctly detected in second argument position', async function () {
|
||||
const result = await this.math.min(max, min);
|
||||
result.should.be.bignumber.equal(min);
|
||||
(await this.math.min(max, min)).should.be.bignumber.equal(min);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user