18 lines
468 B
JavaScript
18 lines
468 B
JavaScript
const anchor = require('@project-serum/anchor');
|
|
|
|
describe('basic-0', () => {
|
|
|
|
// Configure the client to use the local cluster.
|
|
anchor.setProvider(anchor.Provider.local());
|
|
|
|
it('Uses the workspace to invoke the initialize instruction', async () => {
|
|
// #region code
|
|
// Read the deployed program from the workspace.
|
|
const program = anchor.workspace.Basic0;
|
|
|
|
// Execute the RPC.
|
|
await program.rpc.initialize();
|
|
// #endregion code
|
|
});
|
|
});
|