aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/app/controllers/metamask-controller-test.js
Commit message (Collapse)AuthorAgeFilesLines
* Remove `seedWords` completely from metamask state (#6920)Mark Stacey2019-07-261-32/+0
| | | | | | | | | | | | | | | | `seedWords` used to be stored on the metamask state temporarily at certain points. This hasn't been the case since #5994, but references to this state remained. All of the logic remained for correctly updating these `seedWords`, handling them during navigation, and scrubbing them from the state. However the state was never updated in practice. The `seedWords` are still returned by `verifySeedPhrase`, and they're still stored in component state in a few places. But they aren't ever set in the Redux metadata state or the Preferences controller. All references to this state have been removed, along with any logic for interacting with this state. A few unused actions were removed as well.
* Declare variables before use (#6806)Mark Stacey2019-07-061-13/+12
| | | | | | | | | | | | | | | | While working on #6805, I noticed that many variables were being used before they were declared. Technically this worked fine in practice because we were using the `transform-es2015-block-scoping` Babel plugin, which transforms `let` and `const` to `var`, which is hoisted. However, after removing that Babel transformation, many things broke. All instances of variables or classes being used before declared have been fixed. The `no-use-before-define` eslint rule has been added to catch these cases going forward. The rule is disabled for function declarations for the moment, because those are always hoisted. We could disable that too if we want to, but it's purely stylistic and would require a lot more changes.
* feature: integrate gaba/CurrencyRateController (#6570)Paul Bouchon2019-06-011-2/+7
|
* feature: integrate gaba/ShapeShiftController (#6569)Paul Bouchon2019-05-151-1/+1
|
* feature: integrate gaba/PhishingControllerbitpshr2019-05-091-2/+1
|
* Check for unused function arguments (#6583)Whymarrh Whitby2019-05-091-10/+10
| | | | | | | | | | * eslint: Check for unused function arguments * eslint: Ignore unused '_' in argument list Also allow any number of '_' e.g., '__' or '___' which is to be used sparingly * Remove and rename unused arguments
* Tx controller now uses safe event emitter (#5769)Frankie2018-11-171-0/+1
| | | | | | | | | | | | * transactions - use safe-event-emitter over events * tests - pass a platform object on init with a noop showTransactionNotification * test - fix for tx-state-history-helper trying to reduce an empty array * deps - safe-event-emitter * lint
* Increase suggested gas percentile to 65 (#5359)Dan Finlay2018-10-051-1/+1
| | | | | | | | * Increase suggested gas percentile to 65 I keep submitting transactions then waiting a long time. Apparently 50th percentile isn't enough. * Update test for getGasPrice
* Delete ConfigManager, replacing its usages with PreferencesControllerWhymarrh Whitby2018-09-121-19/+15
|
* Add test cases for MetaMaskController#_onKeyringControllerUpdateWhymarrh Whitby2018-08-231-0/+71
|
* fix unit testsbrunobar792018-08-211-1/+1
|
* Merge branch 'develop' into ledger-supportBruno Barbieri2018-08-181-0/+62
|\
| * Restores accounts until one with a zero balance is foundDan Matthews2018-08-171-0/+62
| |
| * Set metamask controller network provider to localhostThomas Huang2018-07-311-1/+1
| |
| * Merge branch 'develop' into network-remove-provider-engineThomas2018-07-261-0/+156
| |\
| * \ Merge branch 'develop' of github.com:MetaMask/metamask-extension into ↵kumavis2018-06-071-0/+3
| |\ \ | | | | | | | | | | | | network-remove-provider-engine
| * \ \ Merge branch 'develop' of github.com:MetaMask/metamask-extension into ↵kumavis2018-06-071-1/+26
| |\ \ \ | | | | | | | | | | | | | | | network-remove-provider-engine
| * | | | test - unit - metamask-controller - remove logkumavis2018-05-261-1/+0
| | | | |
| * | | | test - unit - metamask-controller - fix many bugs in testskumavis2018-05-251-33/+45
| | | | |
| * | | | test - unit - metamask-controller - polyfill global.fetchkumavis2018-05-251-2/+4
| | | | |
* | | | | fix merge conflictsbrunobar792018-08-181-32/+45
| | | | |
* | | | | fixed unit testsbrunobar792018-08-151-5/+9
| | | | |
* | | | | fix tx testsbrunobar792018-08-141-8/+18
| |_|_|/ |/| | |
* | | | added tests for removeAccountbrunobar792018-07-171-0/+33
| | | |
* | | | added more unit testsbrunobar792018-07-171-2/+55
| | | |
* | | | added unit tests for metamaskcontrollerbrunobar792018-07-171-0/+70
| |_|/ |/| |
* | | test - metamask-controller - disable diagnosticskumavis2018-06-061-0/+3
| |/ |/|
* | diagnostics - rewrite bug-notifier as diagnostics-reporterkumavis2018-06-061-5/+0
| |
* | Mock notifier in testDan Finlay2018-06-051-0/+5
| |
* | Add failing test for unknown identity entryDan Finlay2018-06-051-3/+28
|/
* Merge branch 'develop' into testingtmashuang2018-05-221-8/+11
|
* Moved loose some loose test files to sub folderstmashuang2018-05-211-0/+547