Initial commit from template
This commit is contained in:
34
tests/lending.ts
Normal file
34
tests/lending.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
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
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user