File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
basics/hello-solana/anchor/tests Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1- import * as anchor from ' @coral-xyz/anchor' ;
2- import { HelloSolana } from ' ../target/types/hello_solana' ;
1+ import * as anchor from " @coral-xyz/anchor" ;
2+ import type { HelloSolana } from " ../target/types/hello_solana.ts" ;
33
4- describe ( ' hello-solana' , ( ) => {
5- // Configure the Anchor provider & load the program IDL
6- // The IDL gives you a typescript module
7- //
8- const provider = anchor . AnchorProvider . env ( ) ;
9- anchor . setProvider ( provider ) ;
10- const program = anchor . workspace . HelloSolana as anchor . Program < HelloSolana > ;
4+ describe ( "Anchor: hello-solana" , ( ) => {
5+ // Configure the Anchor provider & load the program IDL
6+ // The IDL gives you a typescript module
7+ //
8+ const provider = anchor . AnchorProvider . env ( ) ;
9+ anchor . setProvider ( provider ) ;
10+ const program = anchor . workspace . HelloSolana as anchor . Program < HelloSolana > ;
1111
12- it ( ' Say hello!' , async ( ) => {
13- // Just run Anchor's IDL method to build a transaction!
14- //
15- await program . methods . hello ( ) . accounts ( { } ) . rpc ( ) ;
16- } ) ;
12+ it ( " Say hello!" , async ( ) => {
13+ // Just run Anchor's IDL method to build a transaction!
14+ //
15+ await program . methods . hello ( ) . accounts ( { } ) . rpc ( ) ;
16+ } ) ;
1717} ) ;
You can’t perform that action at this time.
0 commit comments