1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #4512 from MetaMask/test-metamask-no-diagnostics

test - metamask-controller - disable diagnostics
This commit is contained in:
Thomas Huang 2018-06-06 11:54:59 -07:00 committed by GitHub
commit 1fb408f62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,9 @@ describe('MetaMaskController', function () {
}, },
initState: clone(firstTimeState), initState: clone(firstTimeState),
}) })
// disable diagnostics
metamaskController.diagnostics = null
// add sinon method spies
sandbox.spy(metamaskController.keyringController, 'createNewVaultAndKeychain') sandbox.spy(metamaskController.keyringController, 'createNewVaultAndKeychain')
sandbox.spy(metamaskController.keyringController, 'createNewVaultAndRestore') sandbox.spy(metamaskController.keyringController, 'createNewVaultAndRestore')
}) })