File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const deploymentHelper = require ( "../utils/deploymentHelpers.js" )
22const testHelpers = require ( "../utils/testHelpers.js" )
3- const timeMachine = require ( 'ganache-time-traveler' ) ;
43const th = testHelpers . TestHelper
54const dec = th . dec
65const toBN = th . toBN
@@ -54,6 +53,9 @@ contract('StabilityPool', async accounts => {
5453
5554 before ( async ( ) => {
5655 gasPriceInWei = await web3 . eth . getGasPrice ( )
56+ } )
57+
58+ beforeEach ( async ( ) => {
5759 contracts = await deploymentHelper . deployLiquityCore ( )
5860 contracts . troveManager = await TroveManagerTester . new ( )
5961 contracts . lusdToken = await LUSDToken . new (
@@ -84,17 +86,6 @@ contract('StabilityPool', async accounts => {
8486 await th . registerFrontEnds ( frontEnds , stabilityPool )
8587 } )
8688
87- let revertToSnapshot ;
88-
89- beforeEach ( async ( ) => {
90- let snapshot = await timeMachine . takeSnapshot ( ) ;
91- revertToSnapshot = ( ) => timeMachine . revertToSnapshot ( snapshot [ 'result' ] )
92- } ) ;
93-
94- afterEach ( async ( ) => {
95- await revertToSnapshot ( ) ;
96- } ) ;
97-
9889 // --- provideToSP() ---
9990 // increases recorded LUSD at Stability Pool
10091 it ( "provideToSP(): increases the Stability Pool LUSD balance" , async ( ) => {
You can’t perform that action at this time.
0 commit comments