Skip to content

Commit

Permalink
Fix tests to work with cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
spacesailor24 committed Jun 22, 2023
1 parent b0682eb commit 46dceb0
Showing 1 changed file with 0 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,15 @@ describe('Contract - NegativeNumbers.sol', () => {

expect(transactionReceipt.logs).toMatchObject([
{
address: expect.any(String),
topics: ['0x5b53dc4e9e8fa2416d4e172bdad04be5a6d622643bc9ef45987b2caadd0d0c95'],
data: '0xffffffffffffffffffffffffffffffff80000000000000000000000000000001',
blockNumber: expect.any(BigInt),
transactionHash: expect.any(String),
transactionIndex: expect.any(BigInt),
blockHash: expect.any(String),
logIndex: BigInt(0),
removed: false,
},
{
address: expect.any(String),
topics: [
'0x33e7dccd3899498f4408d6468e5dfad650f32574dba2ec4f13399a82e62166d5',
'0xffffffffffffffffffffffffffffffff80000000000000000000000000000001',
],
data: '0x',
blockNumber: expect.any(BigInt),
transactionHash: expect.any(String),
transactionIndex: expect.any(BigInt),
blockHash: expect.any(String),
logIndex: BigInt(1),
removed: false,
},
]);
});
Expand All @@ -97,30 +83,16 @@ describe('Contract - NegativeNumbers.sol', () => {
expect(transactionReceipt.logs).toEqual(
expect.objectContaining([
{
address: expect.any(String),
topics: ['0xfaa997e4b16dcde196bbb99868e16fa934a0b4c1f019e494d9fbffb5abc46fc2'],
data: '0xffffffffffffffffffffffffffffffff80000000000000000000000000000001ffffffffffd6a416919bf9968e000000000000000048c26d7f0da3fa91bf56f8',
blockNumber: expect.any(BigInt),
transactionHash: expect.any(String),
transactionIndex: expect.any(BigInt),
blockHash: expect.any(String),
logIndex: BigInt(0),
removed: false,
},
{
address: expect.any(String),
topics: [
'0x0204c97becd72594486cf753e30e8acfc9951ee663e404bc858e3d10b80da99b',
'0xffffffffffffffffffffffffffffffff80000000000000000000000000000001',
'0xffffffffffd6a416919bf9968e000000000000000048c26d7f0da3fa91bf56f8',
],
data: '0x',
blockNumber: expect.any(BigInt),
transactionHash: expect.any(String),
transactionIndex: expect.any(BigInt),
blockHash: expect.any(String),
logIndex: BigInt(1),
removed: false,
},
]),
);
Expand All @@ -137,30 +109,16 @@ describe('Contract - NegativeNumbers.sol', () => {
expect(transactionReceipt.logs).toEqual(
expect.objectContaining([
{
address: expect.any(String),
topics: ['0x2e1fb99ee1b27b6491b2d46a54ac8daca82f2da6810e4b8eed4d634f78fa6948'],
data: '0xffffffffffffffffffffffffffffffff80000000000000000000000000000001ffffffffffd6a416919bf9968e000000000000000048c26d7f0da3fa91bf56f800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000006666f6f4261720000000000000000000000000000000000000000000000000000',
blockNumber: expect.any(BigInt),
transactionHash: expect.any(String),
transactionIndex: expect.any(BigInt),
blockHash: expect.any(String),
logIndex: BigInt(0),
removed: false,
},
{
address: expect.any(String),
topics: [
'0x0e29b573959c1b6ffd5e16886385ec1732e187cc5ac10e8faceb5e02a1c7b50b',
'0xffffffffffffffffffffffffffffffff80000000000000000000000000000001',
'0xffffffffffd6a416919bf9968e000000000000000048c26d7f0da3fa91bf56f8',
],
data: '0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000006666f6f4261720000000000000000000000000000000000000000000000000000',
blockNumber: expect.any(BigInt),
transactionHash: expect.any(String),
transactionIndex: expect.any(BigInt),
blockHash: expect.any(String),
logIndex: BigInt(1),
removed: false,
},
]),
);
Expand Down

0 comments on commit 46dceb0

Please sign in to comment.