fix: add fullnodeExit()

This commit is contained in:
Michael Vines
2019-04-24 15:22:50 -07:00
parent 2292b5910e
commit 456f34e95b
3 changed files with 36 additions and 0 deletions

View File

@ -44,6 +44,28 @@ test('get account info - error', () => {
);
});
test('fullnodeExit', async () => {
if (!mockRpcEnabled) {
console.log('fullnodeExit skipped on live node');
return;
}
const connection = new Connection(url);
mockRpc.push([
url,
{
method: 'fullnodeExit',
},
{
error: null,
result: false,
},
]);
const result = await connection.fullnodeExit();
expect(result).toBe(false);
});
test('get balance', async () => {
const account = new Account();
const connection = new Connection(url);