aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-content/send-gas-row/tests/send-gas-row-selectors.test.js
blob: a5196334e1fbeb74d673d85840120490aa2078c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import assert from 'assert'
import {
  sendGasIsInError,
} from '../send-gas-row.selectors.js'

describe('send-gas-row selectors', () => {

  describe('sendGasIsInError()', () => {
    it('should return send.errors.gasLoading', () => {
      const state = {
        send: {
          errors: {
            gasLoading: 'abc',
          },
        },
      }

      assert.equal(sendGasIsInError(state), 'abc')
    })
  })

})