All files / data store.ts

100% Statements 41/41
100% Branches 0/0
100% Functions 0/0
100% Lines 41/41

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 421x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import type { Account, Transaction } from "../types";
 
// Temporary in-memory store for development
export const accounts: Account[] = [
  {
    id: "1",
    name: "Checking Account",
    last4: "4321",
    balance: 2500.0,
  },
  {
    id: "2",
    name: "Savings Account",
    last4: "8765",
    balance: 10000.0,
  },
];
 
export const transactions: Transaction[] = [
  {
    id: "1",
    accountId: "1",
    date: "2025-04-20",
    description: "Grocery Store",
    amount: -75.5,
  },
  {
    id: "2",
    accountId: "1",
    date: "2025-04-21",
    description: "Salary Deposit",
    amount: 3000.0,
  },
  {
    id: "3",
    accountId: "2",
    date: "2025-04-22",
    description: "Transfer to Savings",
    amount: 500.0,
  },
];