vortex/test/fixtures/wallet.stub.ts
2024-03-15 16:33:35 +08:00

15 lines
381 B
TypeScript

import { Wallet } from "@prisma/client";
import { Decimal } from "@prisma/client/runtime/library";
import { userStub } from "./user.stub";
export const walletStub = {
wallet: Object.freeze<Wallet>({
id: "payment-id",
balance: new Decimal(0),
incomeBalance: new Decimal(0),
createdAt: new Date(),
updatedAt: new Date(),
userId: userStub.user.id,
}),
};