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

Commit

Permalink
♻️ Fix test phrase and add api test
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Sep 19, 2018
1 parent a8182af commit d4e1553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions test/commands/transaction/broadcast.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ describe('transaction:broadcast', () => {
)
.command(['transaction:broadcast'])
.it('should broadcast the transaction', () => {
expect(api.default).to.be.calledWithExactly(apiConfig);
expect(apiClientStub.transactions.broadcast).to.be.calledWithExactly(
defaultTransaction,
);
Expand Down
6 changes: 3 additions & 3 deletions test/utils/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('transactions utils', () => {
);
});

it('should throw an validation error when the input is not valid JSON format', () => {
it('should throw a validation error when the input is not valid JSON format', () => {
return expect(
parseTransactionString.bind(
null,
Expand All @@ -36,14 +36,14 @@ describe('transactions utils', () => {
).to.throw(ValidationError, 'Could not parse transaction JSON.');
});

it('should throw an validation error when the input is empty', () => {
it('should throw a validation error when the input is empty', () => {
return expect(parseTransactionString.bind(null, '')).to.throw(
ValidationError,
'Could not parse transaction JSON.',
);
});

it('should throw an validation error when the input is undefined', () => {
it('should throw a validation error when the input is undefined', () => {
return expect(parseTransactionString.bind(null)).to.throw(
ValidationError,
'Could not parse transaction JSON.',
Expand Down

0 comments on commit d4e1553

Please sign in to comment.