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

Commit

Permalink
Merge pull request #843 from LiskHQ/456-unit-test-for-intransfer
Browse files Browse the repository at this point in the history
Unit test for intransfer transaction - Subtask #456 - Closes #842
  • Loading branch information
Isabella Dell authored Oct 13, 2017
2 parents 8130018 + bfd3450 commit 2b0564b
Show file tree
Hide file tree
Showing 3 changed files with 731 additions and 2 deletions.
15 changes: 14 additions & 1 deletion test/common/typesRepresentatives.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

var difference = require('lodash').difference;

var arrays = [
{
input: [],
Expand Down Expand Up @@ -165,14 +167,25 @@ var allTypes = arrays
module.exports = {
allTypes: allTypes,
arrays: arrays,
nonArrays: difference(allTypes, arrays),
booleans: booleans,
nonBooleans: difference(allTypes, booleans),
positiveIntegers: positiveIntegers,
nonPositiveIntegers: difference(allTypes, positiveIntegers),
negativeIntegers: negativeIntegers,
nonNegativeIntegers: difference(allTypes, negativeIntegers),
positiveNumbers: positiveNumbers,
nonPositiveNumbers: difference(allTypes, positiveNumbers),
negativeNumbers: negativeNumbers,
nonNegativeNumbers: difference(allTypes, negativeNumbers),
objects: objects,
nonObjects: difference(allTypes, objects),
others: others,
nonOthers: difference(allTypes, others),
strings: strings,
nonStrings: difference(allTypes, strings),
nonEmptyStrings: nonEmptyStrings,
emptyString: emptyString
nonNonEmptyStrings: difference(allTypes, nonEmptyStrings),
emptyString: emptyString,
nonEmptyString: difference(allTypes, emptyString)
};
2 changes: 1 addition & 1 deletion test/unit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ var paths = [

'./logic/account.js',
'./logic/delegate.js',
'./logic/inTransfer.js',
'./logic/peer.js',
'./logic/peers.js',
'./logic/multisignature.js',
'./logic/transaction.js',
'./logic/transactionPool.js',
'./logic/transfer.js',
'./logic/vote.js',
'./logic/multisignature.js',

'./modules/accounts.js',
'./modules/app.js',
Expand Down
Loading

0 comments on commit 2b0564b

Please sign in to comment.