Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
DarksightKellar committed Oct 25, 2024
1 parent a0e356c commit e314c7e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions test/DecentHats_0_1_0.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,16 +533,7 @@ describe('DecentHats_0_1_0', () => {
wearer: ethers.ZeroAddress,
sablierParams: [],
},
hats: [
{
maxSupply: 1,
details: '',
imageURI: '',
isMutable: false,
wearer: ethers.ZeroAddress,
sablierParams: [],
},
],
hats: [],
},
],
),
Expand Down Expand Up @@ -625,18 +616,16 @@ describe('DecentHats_0_1_0', () => {
});

it('Actually creates the new hat', async () => {
const hatsCountBeforeCreate = await mockHats.count();
console.log({ hatsCountBeforeCreate });

// First transfer the top hat to the Safe
await mockHats.transferHat(topHatId, gnosisSafeAddress, decentHatsAddress);

const hatsCountBeforeCreate = await mockHats.count();
expect(hatsCountBeforeCreate).to.equal(2); // Top hat + admin hat

await createRoleHatPromise;

const newHatId = await mockHats.count();
expect(newHatId).to.equal(3);
expect(newHatId).to.equal(3); // + newly created hat
});
});
});
Expand Down

0 comments on commit e314c7e

Please sign in to comment.