Created
March 7, 2017 22:18
-
-
Save aakilfernandes/bebffd2821da77f498bd3bd6755e36cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
storageContract | |
✓ should deploy (1223ms) | |
✓ should have correct code (114ms) | |
✓ should have correct value (112ms) | |
eth | |
getBalance | |
✓ should be fulfilled (131ms) | |
✓ should be array of 10 Amorphs | |
getStorageAt | |
✓ should get pos0 (112ms) | |
✓ should get pos1[msg.sender] (117ms) | |
getTransactionCount | |
✓ account0 should be instanceof Amorph (110ms) | |
✓ account0 should be greater than zero (188ms) | |
✓ account1 should be zero (109ms) | |
getCode | |
✓ should be zeros for account0 (113ms) | |
✓ should not be empty for storageContract.address (107ms) | |
getCompilers | |
✓ should deep equal ["solidity"] (113ms) | |
getGasPrice | |
✓ should be 2 Szabo (113ms) | |
estimateGas | |
✓ should return 21000 for a simple transfer (131ms) | |
sendTransaction | |
✓ should get balances (123ms) | |
✓ should send 1 wei from account0 to account1 | |
✓ transactionMonitor should be instance of TransactionMonitor | |
✓ transactionHashPromise should be fulfilled (339ms) | |
✓ transactionHash should be an Amorph | |
✓ transactionHash should be 32 bytes long | |
✓ transactionPromise should eventually return a Transaction (858ms) | |
✓ getConfirmation() should eventually return a transactionReceipt (113ms) | |
✓ account1 balance should have increased by 1 (112ms) | |
✓ should deploy contract (937ms) | |
✓ contract address code should be correct (112ms) | |
getBlockNumber | |
✓ should be fulfilled (105ms) | |
✓ should be an integer | |
getBlockByNumber | |
✓ should be fulfilled (109ms) | |
✓ blockByNumber should be instance of Block | |
getBlockByHash | |
✓ should be fulfilled (114ms) | |
✓ blockByHash should be instance of Block | |
✓ blockByNumber should deep equal blockByHash | |
getBlockByFlag | |
✓ should be fulfilled (112ms) | |
✓ blockByFlag should be instance of Block | |
✓ blockByFlag should deep equal blockByHash | |
getTransactionByHash | |
✓ should be fulfilled (109ms) | |
✓ transaction should be instance of Transaction | |
✓ transaction hash should be correct | |
getTransactionReceipt | |
✓ should be fulfilled (172ms) | |
AliasReg | |
✓ should deploy (1121ms) | |
✓ should have correct runcode | |
✓ myAlias should be an address (138ms) | |
✓ myAlias should be zero (136ms) | |
✓ myAlias claim myAlias (608ms) | |
✓ getAddr(myAlias) should return account0 (152ms) | |
✓ getAlias(account0) should return myAlias (144ms) | |
TransactionRequest | |
✓ should instantiate with no arguments | |
✓ .toPojo should be blank pojo | |
✓ should instantiate with complete arguments | |
✓ should .toRawSigned() | |
✓ .toPojo should have keys [from, to, data] | |
✓ should throw validation error with bad from | |
✓ should throw validation error with bad tp | |
✓ should throw validation error with bogus field | |
eventsContract | |
deploy | |
✓ should be fulfilled (811ms) | |
✓ parsed transaction receipt should be correct | |
doThing() | |
✓ should emit correct events (1001ms) | |
tag() | |
✓ should emit correct events (1014ms) | |
arrayValContract | |
✓ should deploy (986ms) | |
✓ should have correct code (110ms) | |
✓ should getUints() as [] (161ms) | |
✓ should getUintsAndBools() as [[],[]] (153ms) | |
✓ should setUints([0, 1, 2]) (473ms) | |
✓ should getUints() values [0, 1, 2] (161ms) | |
✓ should setUintsAndBools([3, 4, 5], [false, true]) (843ms) | |
✓ should getUintsAndBools() values [[3, 4, 5], [false, true]] (186ms) | |
✓ should getUintsAndBoolsWithNames() values { myUints: [3, 4, 5], myBools: [false, true] } (186ms) | |
blockPoller | |
✓ should be instance of BlockPoller | |
✓ should get current blockNumber (110ms) | |
✓ should listen to "block" event | |
✓ should wait for promise to be fulfilled (522ms) | |
✓ block should be instance of Block | |
✓ block should be attached to blockPoller as blockPoller.block | |
✓ block.number should be blockNumber + 1 | |
1) should send another dummy Transaction | |
2) blocks should be array of block #1 and block # 2 | |
✓ blockPoller.gasPrice should be 2 Szabo | |
contracts | |
✓ should get globbed (53ms) | |
✓ should get solc | |
interfaces | |
✓ should have 4 protocols [eth, miner, net, web3] | |
eth.call | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (call) should be instance of Validator | |
eth.compileSolidity | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (compileSolidity) should be instance of Validator | |
eth.estimateGas | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (estimateGas) should be instance of Validator | |
eth.getBalance | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getBalance) should be instance of Validator | |
eth.getBlockByFlag | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getBlockByFlag) should be instance of Validator | |
✓ inputterValidator #1 (getBlockByFlag) should be instance of Validator | |
eth.getBlockByHash | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getBlockByHash) should be instance of Validator | |
✓ inputterValidator #1 (getBlockByHash) should be instance of Validator | |
eth.getBlockByNumber | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getBlockByNumber) should be instance of Validator | |
✓ inputterValidator #1 (getBlockByNumber) should be instance of Validator | |
eth.getBlockNumber | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
eth.getCode | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getCode) should be instance of Validator | |
eth.getCompilers | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
eth.getGasPrice | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
eth.getMining | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
eth.getStorageAt | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getStorageAt) should be instance of Validator | |
✓ inputterValidator #1 (getStorageAt) should be instance of Validator | |
eth.getTransactionByHash | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getTransactionByHash) should be instance of Validator | |
eth.getTransactionCount | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getTransactionCount) should be instance of Validator | |
eth.getTransactionReceipt | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (getTransactionReceipt) should be instance of Validator | |
eth.sendRawTransaction | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (sendRawTransaction) should be instance of Validator | |
miner.start | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (start) should be instance of Validator | |
miner.stop | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
net.getListening | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
net.getPeerCount | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
net.getVersion | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
web3.getClientVersion | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
web3.getSha3 | |
✓ should be instance of Interface | |
✓ inputterValidators should be instance of array | |
✓ inputterValidators should have same length as inputter | |
✓ inputterValidator #0 (sha3) should be instance of Validator | |
loggingContract | |
✓ should deploy (1013ms) | |
✓ should have correct code (110ms) | |
✓ should call hello (900ms) | |
✓ transactionReceipt.logs should be correct | |
miner | |
✓ should be mining (110ms) | |
✓ should stop (107ms) | |
✓ should not be mining (108ms) | |
✓ should start (105ms) | |
✓ should be mining (109ms) | |
net | |
getListening | |
✓ should be true (109ms) | |
getPeerCount | |
✓ should be 0 (110ms) | |
getVersion | |
✓ should be a string (124ms) | |
oogContract | |
✓ should deploy (1118ms) | |
✓ doThing() should be fulfilled (1006ms) | |
3) setBlockNumber() with not enough gas should be rejected with OOGError | |
stripType | |
✓ should strip "bytes" | |
✓ should strip "bytes4" | |
✓ should strip "bytes32" | |
✓ should strip "uint256" | |
typesContract | |
✓ should deploy (1018ms) | |
✓ should have correct code (108ms) | |
myAddress | |
✓ should be msg.sender | |
myBool | |
✓ should be true | |
myBytes | |
✓ should be 01 | |
myInt | |
✓ should be -2 | |
myString | |
✓ should be "3" | |
myUint | |
✓ should be 4 | |
validation | |
✓ should throw ArgumentsLengthError | |
✓ should throw ArgumentsLengthError | |
✓ should throw validators.blockFlag.Error | |
web3 | |
getClientVersion | |
✓ should be fulfilled (281ms) | |
✓ clientVersion should be a string" | |
✓ clientVersion should start with "Etheruemjs Testrpc" | |
sha3 | |
✓ should return ciphertext (113ms) | |
✓ ciphertext should be instance of Amorph" | |
✓ ciphertext should be correct" | |
205 passing (32s) | |
3 failing | |
1) blockPoller should send another dummy Transaction: | |
Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. | |
2) blockPoller blocks should be array of block #1 and block # 2: | |
AssertionError: expected [ Array(1) ] to have a length of 2 but got 1 | |
at Context.it (test/blockPoller.js:60:24) | |
3) oogContract setBlockNumber() with not enough gas should be rejected with OOGError: | |
Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment