embark/test_apps/test_app/test
emizzle f54982254d fix(@embark/core): fix to allow large ether values
Specifying large ether values in the configs was causing embark to crash as javascript could not handle the large integer after the value was converted to wei.

The fix involves converting all values to BigNumbers and then comparing and adding/subtracting BigNumbers from that point forward.

There are two specific components that this affected: `config/contracts > accounts > balance` and `config/blockchain > account > balance`. The contracts config is used to fund accounts for contract deployment while the blockchain config is used for dev_funds accounts.

JSON.stringify unknown log messages

Add a unit test in the test app that sets a large ether value in the config before contract deployment and ensures the account balance is the value specified in the config.

Prior to this commit, if subsequent unit tests contained different account configurations, the blockchain VM was essentially reset, however EmbarkJS was hanging on to the old providers it used from the previous configuation.

In addition, there is a limitation with `embark.registerActionForEvent` in that the action will be persisted across configuration changes. In our case, once the configuration was updated in a subsequent unit test, the directive subdomains would be attempted to be registered in ENS using the old configuration.

This commit does two things:
1) It resets the EmbarkJS.Blockchain and EmbarkJS.Names providers to the new chain configuration
2) Update to the ENS directives that prevents attempts at registered configured subdomains for previous configurations.
2019-01-09 16:56:23 -05:00
..
another_storage_spec.js Remove test 2018-10-23 10:17:26 +02:00
array_references_spec.js catch $accounts in contract config 2018-08-21 16:09:49 -04:00
config_spec.js fix(@embark/core): fix to allow large ether values 2019-01-09 16:56:23 -05:00
embarkJS_spec.js refactor(test): make embarkJS importable in tests 2018-11-30 15:45:19 -05:00
http_contract_test.js fix(ci): make CI happy again by updating http paths to master branch 2018-11-09 04:47:54 -05:00
interface_spec.js fix web3 being reseted every test and fix ens failing on web3 reset 2018-10-22 19:54:48 +02:00
lib_test_spec.js conflicts in tests 2018-06-07 16:14:42 -04:00
namesystem_spec.js feature: disallow eval and require in cockpit 2018-12-20 17:41:03 -05:00
plugin_storage_spec.js conflicts in tests 2018-06-07 16:14:42 -04:00
simple_storage_deploy_spec.js Fix embark test using node option 2018-09-12 15:03:17 +01:00
simple_storage_spec.js enable self-referencing contracts in onDeploy 2018-10-25 19:11:49 -04:00
token_spec.js enable self-referencing contracts in onDeploy 2018-10-25 19:11:49 -04:00