作者:ewingr
项目:0x-monorep
beforeEach(async () => {
await blockchainLifecycle.startAsync();
const sinonTimerConfig = { shouldAdvanceTime: true } as any;
// This constructor has incorrect types
timer = Sinon.useFakeTimers(sinonTimerConfig);
currentUnixTimestampSec = utils.getCurrentUnixTimestampSec();
expirationWatcher = new ExpirationWatcher();
});
作者:ewingr
项目:0x-monorep
afterEach(async () => {
await blockchainLifecycle.revertAsync();
});
作者:ewingr
项目:0x-monorep
beforeEach(async () => {
await blockchainLifecycle.startAsync();
});
作者:ewingr
项目:0x-monorep
afterEach(async () => {
await blockchainLifecycle.revertAsync();
timer.restore();
expirationWatcher.unsubscribe();
});