refactor: employ prettier

This commit is contained in:
Michael Vines
2018-11-04 11:41:21 -08:00
parent 9a043344d5
commit 1d6abb17cf
35 changed files with 1498 additions and 856 deletions

View File

@@ -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
});