vortex/test/fixtures/wallet.stub.ts

15 lines
381 B
TypeScript
Raw Permalink Normal View History

2024-03-15 15:47:32 +08:00
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,
}),
};