Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
♻️ rename helper files format files. return in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
toschdev committed Dec 13, 2017
1 parent 8700d8c commit 7529993
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/transactions/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export {
export { default as getTransactionBytes } from './getTransactionBytes';
export { default as getTransactionHash } from './getTransactionHash';
export { default as getTransactionId } from './getTransactionId';
export { prependPlusToPublicKeys, prependMinusToPublicKeys } from './helper';
export { prependPlusToPublicKeys, prependMinusToPublicKeys } from './format';
export { default as prepareTransaction } from './prepareTransaction';
export {
signTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import {
prependPlusToPublicKeys,
prependMinusToPublicKeys,
} from '../../../src/transactions/utils/helper';
} from '../../../src/transactions/utils/format';

describe('helper', () => {
describe('format', () => {
describe('#prependPlusToPublicKeys', () => {
describe('Given an array of public keys', () => {
it('should append plus to each public key', () => {
Expand All @@ -32,7 +32,9 @@ describe('helper', () => {
'+922fbfdd596fa78269bbcadc67ec2a1cc15fc929a19c462169568d7a3df1a1aa',
'+5d036a858ce89f844491762eb89e2bfbd50a4a0a0da658e4b2628b25b117ae09',
];
prependPlusToPublicKeys(publicKeys).should.be.eql(expectedOutput);
return prependPlusToPublicKeys(publicKeys).should.be.eql(
expectedOutput,
);
});
});
});
Expand All @@ -50,7 +52,9 @@ describe('helper', () => {
'-922fbfdd596fa78269bbcadc67ec2a1cc15fc929a19c462169568d7a3df1a1aa',
'-5d036a858ce89f844491762eb89e2bfbd50a4a0a0da658e4b2628b25b117ae09',
];
prependMinusToPublicKeys(publicKeys).should.be.eql(expectedOutput);
return prependMinusToPublicKeys(publicKeys).should.be.eql(
expectedOutput,
);
});
});
});
Expand Down

0 comments on commit 7529993

Please sign in to comment.