refactor: employ prettier
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
// @flow
|
||||
|
||||
import {
|
||||
Account,
|
||||
BudgetProgram,
|
||||
SystemProgram,
|
||||
} from '../src';
|
||||
import {Account, BudgetProgram, SystemProgram} from '../src';
|
||||
|
||||
test('createAccount', () => {
|
||||
const from = new Account();
|
||||
@@ -29,30 +25,21 @@ test('move', () => {
|
||||
const to = new Account();
|
||||
let transaction;
|
||||
|
||||
transaction = SystemProgram.move(
|
||||
from.publicKey,
|
||||
to.publicKey,
|
||||
123,
|
||||
);
|
||||
transaction = SystemProgram.move(from.publicKey, to.publicKey, 123);
|
||||
|
||||
expect(transaction.keys).toHaveLength(2);
|
||||
expect(transaction.programId).toEqual(SystemProgram.programId);
|
||||
// TODO: Validate transaction contents more
|
||||
});
|
||||
|
||||
|
||||
test('assign', () => {
|
||||
const from = new Account();
|
||||
const to = new Account();
|
||||
let transaction;
|
||||
|
||||
transaction = SystemProgram.assign(
|
||||
from.publicKey,
|
||||
to.publicKey,
|
||||
);
|
||||
transaction = SystemProgram.assign(from.publicKey, to.publicKey);
|
||||
|
||||
expect(transaction.keys).toHaveLength(1);
|
||||
expect(transaction.programId).toEqual(SystemProgram.programId);
|
||||
// TODO: Validate transaction contents more
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user