Skip to content

Commit

Permalink
rm unused in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Feb 19, 2025
1 parent 58e5a8a commit fbdd4c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/ui-components/src/__tests__/OrderDetail.test.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
onRemove: $orderDetailQuery.refetch,
chainId,
orderbookAddress,
subgraphUrl,
network: 'subgraphName'
subgraphUrl
}
})}
disabled={!handleOrderRemoveModal}
Expand Down
6 changes: 2 additions & 4 deletions packages/ui-components/src/__tests__/transactionStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ describe('transactionStore', () => {
it('should handle successful remove order indexing', async () => {
const mockSubgraphUrl = 'test.com';
const mockTxHash = 'mockHash';
const mockNetwork = 'flare';

(getTransactionRemoveOrders as Mock).mockResolvedValue([
{
Expand All @@ -361,7 +360,7 @@ describe('transactionStore', () => {

vi.useFakeTimers({ shouldAdvanceTime: true });

await awaitRemoveOrderIndexing(mockSubgraphUrl, mockTxHash, mockNetwork);
await awaitRemoveOrderIndexing(mockSubgraphUrl, mockTxHash);

vi.runOnlyPendingTimers();

Expand All @@ -375,11 +374,10 @@ describe('transactionStore', () => {
vi.useFakeTimers();
const mockSubgraphUrl = 'test.com';
const mockTxHash = 'mockHash';
const mockNetwork = 'flare';

(getTransactionRemoveOrders as Mock).mockResolvedValue([]);

const indexingPromise = awaitRemoveOrderIndexing(mockSubgraphUrl, mockTxHash, mockNetwork);
const indexingPromise = awaitRemoveOrderIndexing(mockSubgraphUrl, mockTxHash);

expect(get(transactionStore).status).toBe(TransactionStatus.PENDING_SUBGRAPH);
expect(get(transactionStore).message).toBe('Waiting for order removal to be indexed...');
Expand Down

0 comments on commit fbdd4c3

Please sign in to comment.