Skip to content

Commit

Permalink
feat(frontend): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loki344 committed Jan 8, 2025
1 parent 0819d91 commit b954290
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/frontend/src/tests/mocks/sol-transactions.mock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { SolCertifiedTransaction } from '$sol/stores/sol-transactions.store';
import type { SolRpcTransaction, SolTransactionUi } from '$sol/types/sol-transaction';
import { mockSolAddress } from '$tests/mocks/sol.mock';
import { address } from '@solana/addresses';
Expand All @@ -18,6 +19,17 @@ export const createMockSolTransactionUi = (id: string): SolTransactionUi => ({
status: 'finalized'
});

export const mockSolCertifiedTransactions: SolCertifiedTransaction[] = [
{
data: createMockSolTransactionUi('tx1'),
certified: false
},
{
data: createMockSolTransactionUi('tx2'),
certified: false
}
];

export const mockSolRpcReceiveTransaction: SolRpcTransaction = {
blockTime: 1736257946n as UnixTimestamp,
confirmationStatus: 'finalized',
Expand Down

0 comments on commit b954290

Please sign in to comment.