Skip to content

Commit

Permalink
removes nft logic from all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FlacoJones committed Feb 25, 2023
1 parent a10a1df commit a75a383
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion test/Bounty/TieredBountyCore.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const {
tieredFixedBountyInitOperationBuilder_permissionless
} = require('../constants');

describe.only('TieredBountyCore.sol', () => {
describe('TieredBountyCore.sol', () => {
// CONTRACT FACTORIES
let TieredFixedBountyV1;

Expand Down
16 changes: 0 additions & 16 deletions test/Bounty/TieredFixedBounty.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ describe('TieredFixedBountyV1.sol', () => {
// MOCK ASSETS
let mockLink;
let mockDai;
let mockNft;

// UTILS
let abiCoder = new ethers.utils.AbiCoder;
Expand All @@ -45,7 +44,6 @@ describe('TieredFixedBountyV1.sol', () => {
TieredFixedBountyV1 = await ethers.getContractFactory('TieredFixedBountyV1');
const MockLink = await ethers.getContractFactory('MockLink');
const MockDai = await ethers.getContractFactory('MockDai');
const MockNft = await ethers.getContractFactory('MockNft');

[owner, claimManager, depositManager] = await ethers.getSigners();

Expand All @@ -56,16 +54,6 @@ describe('TieredFixedBountyV1.sol', () => {
mockDai = await MockDai.deploy();
await mockDai.deployed();

mockNft = await MockNft.deploy();
await mockNft.deployed();

await mockNft.safeMint(owner.address);
await mockNft.safeMint(owner.address);
await mockNft.safeMint(owner.address);
await mockNft.safeMint(owner.address);
await mockNft.safeMint(owner.address);
await mockNft.safeMint(owner.address);

// TIERED BOUNTY
tieredFixedContract = await TieredFixedBountyV1.deploy();
await tieredFixedContract.deployed();
Expand All @@ -78,10 +66,6 @@ describe('TieredFixedBountyV1.sol', () => {
// Pre-approve LINK and DAI for transfers during testing
await mockLink.approve(tieredFixedContract.address, 10000000);
await mockDai.approve(tieredFixedContract.address, 10000000);

await mockNft.approve(tieredFixedContract.address, 0);
await mockNft.approve(tieredFixedContract.address, 1);
await mockNft.approve(tieredFixedContract.address, 2);
});

describe('initializer', () => {
Expand Down

0 comments on commit a75a383

Please sign in to comment.