embark/test_apps/test_app
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_folder look for contract import in dapp dir and node_modules 2018-04-12 17:55:57 -04:00
app refactor(blockchain): add a web3 provider for embarkJS 2018-12-07 19:29:10 -05:00
config feat(@embark/core): Support directives in ENS config 2018-12-07 10:21:47 -05:00
contracts fix tests 2018-09-14 15:21:45 -04:00
extensions/embark-service refactor: change registerConsoleCommands to the new API 2018-12-17 09:59:03 -05:00
some_folder look for contract import in dapp dir and node_modules 2018-04-12 17:55:57 -04:00
test fix(@embark/core): fix to allow large ether values 2019-01-09 16:56:23 -05:00
README.md trigger CI build 2018-06-15 09:16:03 -04:00
embark.json display last error found 2018-10-23 18:27:40 -04:00
embark.old_config.json move test_app to test_apps 2018-03-29 18:20:45 -04:00
package-lock.json fix linting issues 2018-10-29 15:33:12 +01:00
package.json rev testdapp scripts -- INIT_CWD compat 2018-09-21 17:00:08 -05:00
test.file display last error found 2018-10-23 18:27:40 -04:00

README.md

Test App for integration testing purposes.

../../bin/embark run to check if everything is behaving as expected

../../bin/embark test to see tests are working as expected

dist/index.html and dist/test.html to check different functionality