17 lines
542 B
TypeScript
17 lines
542 B
TypeScript
import * as anchor from "@coral-xyz/anchor";
|
|
import { Program } from "@coral-xyz/anchor";
|
|
import { Tournaments } from "../target/types/tournaments";
|
|
|
|
describe("tournaments", () => {
|
|
// Configure the client to use the local cluster.
|
|
anchor.setProvider(anchor.AnchorProvider.env());
|
|
|
|
const program = anchor.workspace.Tournaments as Program<Tournaments>;
|
|
|
|
it("Is initialized!", async () => {
|
|
// Add your test here.
|
|
const tx = await program.methods.initialize().rpc();
|
|
console.log("Your transaction signature", tx);
|
|
});
|
|
});
|