Finalize test migration: remove legacy dependencies and test helpers (#4797)
This commit is contained in:
@ -3,10 +3,8 @@ const { expect } = require('chai');
|
||||
const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');
|
||||
const { PANIC_CODES } = require('@nomicfoundation/hardhat-chai-matchers/panic');
|
||||
|
||||
const { Rounding } = require('../../helpers/enums');
|
||||
const { min, max } = require('../../helpers/math');
|
||||
const {
|
||||
bigint: { Rounding },
|
||||
} = require('../../helpers/enums.js');
|
||||
|
||||
const RoundingDown = [Rounding.Floor, Rounding.Trunc];
|
||||
const RoundingUp = [Rounding.Ceil, Rounding.Expand];
|
||||
|
||||
@ -9,7 +9,7 @@ async function fixture() {
|
||||
return { mock };
|
||||
}
|
||||
|
||||
contract('SafeCast', function () {
|
||||
describe('SafeCast', function () {
|
||||
beforeEach(async function () {
|
||||
Object.assign(this, await loadFixture(fixture));
|
||||
});
|
||||
|
||||
@ -14,7 +14,7 @@ async function fixture() {
|
||||
return { mock };
|
||||
}
|
||||
|
||||
contract('SignedMath', function () {
|
||||
describe('SignedMath', function () {
|
||||
beforeEach(async function () {
|
||||
Object.assign(this, await loadFixture(fixture));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user