aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ui
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-15 05:03:21 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-21 01:48:46 +0800
commit3c73781787f7aab6cdba0b738e4844a26aab5d8e (patch)
tree5a98f0acdcda6d3dd1a8368be6bb0ddf77c8fa6a /test/unit/ui
parent41f89ac7edf994f3d15d32d3d82d8d2b03dec481 (diff)
downloadtangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.gz
tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.zst
tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.zip
Delete old-ui folder
Diffstat (limited to 'test/unit/ui')
-rw-r--r--test/unit/ui/add-token.spec.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/unit/ui/add-token.spec.js b/test/unit/ui/add-token.spec.js
deleted file mode 100644
index f6b6155a0..000000000
--- a/test/unit/ui/add-token.spec.js
+++ /dev/null
@@ -1,43 +0,0 @@
-const assert = require('assert')
-const { createMockStore } = require('redux-test-utils')
-const h = require('react-hyperscript')
-const { shallowWithStore } = require('../../lib/render-helpers')
-const AddTokenScreen = require('../../../old-ui/app/add-token')
-
-describe('Add Token Screen', function () {
- let addTokenComponent, store, component
- const mockState = {
- metamask: {
- identities: {
- '0x7d3517b0d011698406d6e0aed8453f0be2697926': {
- 'address': '0x7d3517b0d011698406d6e0aed8453f0be2697926',
- 'name': 'Add Token Name',
- },
- },
- },
- }
- beforeEach(function () {
- store = createMockStore(mockState)
- component = shallowWithStore(h(AddTokenScreen), store)
- addTokenComponent = component.dive()
- })
-
- describe('#ValidateInputs', function () {
-
- it('Default State', function () {
- addTokenComponent.instance().validateInputs()
- const state = addTokenComponent.state()
- assert.equal(state.warning, 'Address is invalid.')
- })
-
- it('Address is a Metamask Identity', function () {
- addTokenComponent.setState({
- address: '0x7d3517b0d011698406d6e0aed8453f0be2697926',
- })
- addTokenComponent.instance().validateInputs()
- const state = addTokenComponent.state()
- assert.equal(state.warning, 'Personal address detected. Input the token contract address.')
- })
-
- })
-})