Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Oct 31, 2024
1 parent ebb4b90 commit 0096297
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/testcases/run_in_band/dex_grpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1220000000000000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.GoodTilCanceled,
max_amount_out: '',
},
});
expect(res.code).toEqual(0);
Expand Down Expand Up @@ -170,7 +169,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '998000000000000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.ImmediateOrCancel,
max_amount_out: '',
},
});
expect(res.code).toEqual(0);
Expand All @@ -186,7 +184,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1220000000000000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.JustInTime,
max_amount_out: '',
},
});
expect(res.code).toEqual(0);
Expand All @@ -204,7 +201,6 @@ describe('Neutron / dex module (grpc contract)', () => {
Math.ceil(Date.now() / 1000) + 1000,
),
order_type: LimitOrderType.GoodTilTime,
max_amount_out: '',
},
});
expect(res.code).toEqual(0);
Expand All @@ -221,7 +217,6 @@ describe('Neutron / dex module (grpc contract)', () => {
amount_in: '10000000',
expiration_time: secondsToRFC3339(1),
order_type: LimitOrderType.GoodTilTime,
max_amount_out: '',
},
}),
).rejects.toThrowError(
Expand All @@ -240,7 +235,6 @@ describe('Neutron / dex module (grpc contract)', () => {
amount_in: '10',
expiration_time: secondsToRFC3339(1),
order_type: 10,
max_amount_out: '',
},
}),
).rejects.toThrowError(
Expand All @@ -259,7 +253,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '818812575700000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.GoodTilCanceled,
max_amount_out: '',
},
});
expect(res1.code).toEqual(0);
Expand All @@ -278,7 +271,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1100000000000000000000000000',
amount_in: '1000',
order_type: LimitOrderType.ImmediateOrCancel,
max_amount_out: '',
},
});
expect(res2.code).toEqual(0);
Expand Down Expand Up @@ -453,7 +445,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '818812575700000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.GoodTilCanceled,
max_amount_out: '',
},
});
activeTrancheKey = getEventAttributesFromTx(
Expand All @@ -472,7 +463,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1000000000000000000000000000',
amount_in: '1000',
order_type: LimitOrderType.ImmediateOrCancel,
max_amount_out: '',
},
});

Expand All @@ -486,7 +476,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '7381675653600000000000000000',
amount_in: '1000000',
order_type: LimitOrderType.JustInTime,
max_amount_out: '',
},
});
inactiveTrancheKey = getEventAttributesFromTx(
Expand Down Expand Up @@ -578,7 +567,7 @@ describe('Neutron / dex module (grpc contract)', () => {
},
},
);
expect(respNoPoolData.deposits[0].total_shares).toEqual('');
expect(respNoPoolData.deposits[0].total_shares).toBeNull();
expect(respNoPoolData.deposits[0].pool).toBeNull();
});
test('AllTickLiquidity', async () => {
Expand Down Expand Up @@ -739,8 +728,6 @@ describe('Neutron / dex module (grpc contract)', () => {
limit_sell_price: '1200000000000000000000000000',
amount_in: '10000',
order_type: LimitOrderType.FillOrKill.toString(),
max_amount_out: '',
min_average_sell_price: '',
},
},
});
Expand Down

0 comments on commit 0096297

Please sign in to comment.