diff --git a/ui/app/components/send/send-content/send-to-row/tests/send-to-row-container.test.js b/ui/app/components/send/send-content/send-to-row/tests/send-to-row-container.test.js index ed4e9e57ee7b..5dec85590777 100644 --- a/ui/app/components/send/send-content/send-to-row/tests/send-to-row-container.test.js +++ b/ui/app/components/send/send-content/send-to-row/tests/send-to-row-container.test.js @@ -49,7 +49,7 @@ describe('send-to-row container', () => { to: 'mockTo:mockState', toAccounts: 'mockToAccounts:mockState', toDropdownOpen: 'mockToDropdownOpen:mockState', - tokens: 'mockTo:mockState', + tokens: 'mockTokens:mockState', }) }) diff --git a/ui/app/components/send/send-content/send-to-row/tests/send-to-row-selectors.test.js b/ui/app/components/send/send-content/send-to-row/tests/send-to-row-selectors.test.js index 4611394bbeba..0fa342d1ec1c 100644 --- a/ui/app/components/send/send-content/send-to-row/tests/send-to-row-selectors.test.js +++ b/ui/app/components/send/send-content/send-to-row/tests/send-to-row-selectors.test.js @@ -43,16 +43,17 @@ describe('send-to-row selectors', () => { assert.equal(sendToIsInError(state), false) }) + }) - it('should return false if send.errors.to is falsy', () => { + describe('getTokens()', () => { + it('should return empty array if no tokens in state', () => { const state = { metamask: { tokens: [], }, } - assert.equal(getTokens(state), []) + assert.deepStrictEqual(getTokens(state), []) }) }) - }) diff --git a/ui/app/components/send/send-content/send-to-row/tests/send-to-row-utils.test.js b/ui/app/components/send/send-content/send-to-row/tests/send-to-row-utils.test.js index 89291c6df76c..b64d1d7c2cc7 100644 --- a/ui/app/components/send/send-content/send-to-row/tests/send-to-row-utils.test.js +++ b/ui/app/components/send/send-content/send-to-row/tests/send-to-row-utils.test.js @@ -55,7 +55,7 @@ describe('send-to-row utils', () => { }) it('should return a known address recipient if to is truthy but part of state tokens', () => { - assert.deepEqual(getToErrorObject('0xabc123', null, false, ['0xabc123']), { + assert.deepEqual(getToErrorObject('0xabc123', undefined, false, [{'address': '0xabc123'}]), { to: KNOWN_RECIPIENT_ADDRESS_ERROR, }) })