35 lines
774 B
TypeScript
35 lines
774 B
TypeScript
|
|
import * as anchor from "@coral-xyz/anchor";
|
||
|
|
import { Program } from "@coral-xyz/anchor";
|
||
|
|
import { Lending } from "../target/types/lending";
|
||
|
|
|
||
|
|
describe("lending", () => {
|
||
|
|
const provider = anchor.AnchorProvider.env();
|
||
|
|
anchor.setProvider(provider);
|
||
|
|
|
||
|
|
const program = anchor.workspace.Lending as Program<Lending>;
|
||
|
|
|
||
|
|
it("Initialize bank", async () => {
|
||
|
|
// Test initialization
|
||
|
|
});
|
||
|
|
|
||
|
|
it("Initialize user", async () => {
|
||
|
|
// Test user initialization
|
||
|
|
});
|
||
|
|
|
||
|
|
it("Deposit tokens", async () => {
|
||
|
|
// Test deposit functionality
|
||
|
|
});
|
||
|
|
|
||
|
|
it("Withdraw tokens", async () => {
|
||
|
|
// Test withdraw functionality
|
||
|
|
});
|
||
|
|
|
||
|
|
it("Borrow tokens", async () => {
|
||
|
|
// Test borrow functionality
|
||
|
|
});
|
||
|
|
|
||
|
|
it("Repay loan", async () => {
|
||
|
|
// Test repay functionality
|
||
|
|
});
|
||
|
|
});
|