text: import {
    addTransaction,
    ADD_TRANSACTION,
    updateTransaction,
    UPDATE_TRANSACTION,
    deleteTransaction,
    DELETE_TRANSACTION,
  } from '../../actions/transaction'
  
  describe('transaction actions', () => {
    it('should create an action to set the transaction', () => {
      const transaction = {}
      const expectedAction = {
        type: ADD_TRANSACTION,
        transaction,
      }
      expect(addTransaction(transaction)).toEqual(expectedAction)
    })
  
    it('should create an action to update the transaction', () => {
      const hash = '0x123'
      const update = {}
      const expectedAction = {
        type: UPDATE_TRANSACTION,
        hash,
        update,
      }
      expect(updateTransaction(hash, update)).toEqual(expectedAction)
    })
  
    it('should create an action to delete a transaction', () => {
      const transaction = {}
      const expectedAction = {
        type: DELETE_TRANSACTION,
        transaction,
      }
      expect(deleteTransaction(transaction)).toEqual(expectedAction)
    })
  })
  