text: import { mount, createLocalVue } from '@vue/test-utils'
  import mixins from '@/mixins'
  
  import ForgingStats from '@/components/monitor/ForgingStats'
  import VueI18n from 'vue-i18n'
  import Vuex from 'vuex'
  
  const localVue = createLocalVue()
  localVue.use(VueI18n)
  localVue.use(Vuex)
  
  const i18n = new VueI18n({
    locale: 'en-gb',
    fallbackLocale: 'en-gb',
    messages: { 'en-gb': {} },
    silentTranslationWarn: true
  })
  
  describe('monitor/ForgingStats', () => {
    it('Should show the forging info', () => {
      const store = new Vuex.Store({
        modules: {
          network: {
            namespaced: true,
            getters: { activeDelegates: state => 51 }
          }
        },
        strict: true
      })
  
      const wrapper = mount(ForgingStats, {
        i18n,
        localVue,
        mixins,
        store,
        stubs: {
          'ArkMeter': '<div></div>'
        },
        propsData: {
          delegates: []
        }
      })
      const divs = wrapper.findAll('div.text-grey')
      expect(divs).toHaveLength(4)
      expect(divs.at(0).text()).toBe('Forged block recently')
      expect(divs.at(1).text()).toContain('Missed block')
      expect(divs.at(2).text()).toBe('Not forging')
      expect(divs.at(3).text()).toContain('In queue for forging')
    })
  })
  