aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas <thomas.b.huang@gmail.com>2018-05-08 05:56:33 +0800
committerThomas <thomas.b.huang@gmail.com>2018-05-08 05:56:33 +0800
commitf2e1cb9302320c9abf2814bfdaea98aee7add92e (patch)
treec7a5e7810727d08e0822999ce79ee62cebcaf76f
parent8250fd9d6daae3bcef17d8de4e3f2b22ac58ce5b (diff)
downloadtangerine-wallet-browser-f2e1cb9302320c9abf2814bfdaea98aee7add92e.tar
tangerine-wallet-browser-f2e1cb9302320c9abf2814bfdaea98aee7add92e.tar.gz
tangerine-wallet-browser-f2e1cb9302320c9abf2814bfdaea98aee7add92e.tar.bz2
tangerine-wallet-browser-f2e1cb9302320c9abf2814bfdaea98aee7add92e.tar.lz
tangerine-wallet-browser-f2e1cb9302320c9abf2814bfdaea98aee7add92e.tar.xz
tangerine-wallet-browser-f2e1cb9302320c9abf2814bfdaea98aee7add92e.tar.zst
tangerine-wallet-browser-f2e1cb9302320c9abf2814bfdaea98aee7add92e.zip
Remove approvePersonalMessage test
-rw-r--r--test/unit/metamask-controller-test.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/test/unit/metamask-controller-test.js b/test/unit/metamask-controller-test.js
index ae9f549ad..332ccfdb8 100644
--- a/test/unit/metamask-controller-test.js
+++ b/test/unit/metamask-controller-test.js
@@ -460,51 +460,6 @@ describe('MetaMaskController', function () {
})
})
- describe('#approvePersonalMessage', function () {
-
- it('errors with no from in msgParams', function () {
- const msgParams = {
- 'data': data,
- }
- metamaskController.approvePersonalMessage(msgParams, function (error) {
- assert.equal(error.message, 'MetaMask Message Signature: from field is required.')
- })
- })
-
- let msgParams, metamaskMsgs, msgId
-
- const address = '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc'
- const data = '0x43727970746f6b697474696573'
-
- beforeEach(function () {
-
- msgParams = {
- 'from': address,
- 'data': data,
- }
-
- metamaskController.approvePersonalMessage(msgParams, noop)
- metamaskMsgs = metamaskController.personalMessageManager.getUnapprovedMsgs()
- msgId = Object.keys(metamaskMsgs)[0]
- })
-
- it('persists address from msg params', function () {
- assert.equal(metamaskMsgs[msgId].msgParams.from, address)
- })
-
- it('persists data from msg params', function () {
- assert.equal(metamaskMsgs[msgId].msgParams.data, data)
- })
-
- it('sets the status to unapproved', function () {
- assert.equal(metamaskMsgs[msgId].status, 'unapproved')
- })
-
- it('sets the type to personal_sign', function () {
- assert.equal(metamaskMsgs[msgId].type, 'personal_sign')
- })
- })
-
describe('#setupUntrustedCommunication', function () {
let streamTest