From cbd0838b83a95987c585ce82c6be1513c6b60486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renaud?= Date: Mon, 4 Mar 2024 16:14:27 +0100 Subject: [PATCH] delete unsued file --- .../test/Lock/behaviors/lockBehaviors.js | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 smart-contracts/test/Lock/behaviors/lockBehaviors.js diff --git a/smart-contracts/test/Lock/behaviors/lockBehaviors.js b/smart-contracts/test/Lock/behaviors/lockBehaviors.js deleted file mode 100644 index c2bb8fc9332c..000000000000 --- a/smart-contracts/test/Lock/behaviors/lockBehaviors.js +++ /dev/null @@ -1,39 +0,0 @@ -// The test run will repeat for each of these lock fixtures individually -const lockTypes = ['FIRST', 'ERC20', 'FREE'] - -const { deployERC20, deployAllLocks } = require('../../helpers') - -describe('Lock / lockBehaviors', (accounts) => { - beforeEach(async () => { - this.accounts = accounts - - this.testToken = await deployERC20(accounts[0]) - // Mint some tokens for testing - for (let i = 0; i < accounts.length; i++) { - await this.testToken.mint(accounts[i], '1000000000000000000', { - from: accounts[0], - }) - } - - this.locks = await deployAllLocks(accounts[0], this.testToken.address) - }) - - lockTypes.forEach((lockType) => { - describe(`Test lock fixture: '${lockType}'`, () => { - beforeEach(async () => { - this.lock = this.locks[lockType] - - // approve spending (ignored if the test pass does not use ERC-20) - for (let i = 0; i < accounts.length; i++) { - await this.testToken.approve( - this.lock.address, - await this.lock.keyPrice(), - { - from: accounts[i], - } - ) - } - }) - }) - }) -})