import Vue from 'vue';
import Blockie from '@/components/Blockie';
import { mount, shallowMount } from '@vue/test-utils';

import { Tooling } from '@@/helpers';

describe('Blockie.vue', () => {
  let localVue, i18n, wrapper, store;
  const address = '0xDECAF9CD2367cdbb726E904cD6397eDFcAe6068D';

  beforeAll(() => {
    const baseSetup = Tooling.createLocalVueInstance();
    localVue = baseSetup.localVue;
    i18n = baseSetup.i18n;
    store = baseSetup.store;
  });

  beforeEach(() => {
    wrapper = shallowMount(Blockie, {
      localVue,
      i18n,
      store,
      attachToDocument: true,
      propsData: {
        address: address
      }
    });
  });

  it('should render correct contents', () => {});
});

describe('Blockie.vue', () => {
  it('should render correct contents', () => {
    const wrapper = mount(Blockie, {
      propsData: {
        address: '0xDECAF9CD2367cdbb726E904cD6397eDFcAe6068D'
      }
    });
    expect(wrapper.element.style['background-image']).toEqual(
      'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABmJLR0QA/wD/AP+gvaeTAAABzElEQVR4nO3doU0EURRA0R0CColGEzxq/QoKwFEDgkIwtICjAASeMjAYDBLNFvHED7nn+JdMZm+emb8z283+7G838PvzNBnfHd7uRvPvt6+j+anV139+8TiaPxlN8+8JIE4AcQKIE0CcAOIEECeAOAHECSBOAHECiBNAnADiBBC3Tc8D7F++RhfwcX85mp+eR5iaPo9fff9sgDgBxAkgTgBxAogTQJwA4gQQJ4A4AcQJIE4AcQKIE0CcAOJOp8+jWWv6+9kAcQKIE0CcAOIEECeAOAHECSBOAHECiBNAnADiBBAngDgBxG3XV8+j9wNM35fPzPR7AzZAnADiBBAngDgBxAkgTgBxAogTQJwA4gQQJ4A4AcQJIE4AcePzAFP18wTT5/lTNkCcAOIEECeAOAHECSBOAHECiBNAnADiBBAngDgBxAkgTgBx28Pn99LzAKxlA8QJIE4AcQKIE0CcAOIEECeAOAHECSBOAHECiBNAnADiBBC3/HsBq/8fv9rq+2cDxAkgTgBxAogTQJwA4gQQJ4A4AcQJIE4AcQKIE0CcAOIEECeAOAHECSBOAHECiBNAnADiBBAngDgBxAkgTgBxAogTQJwA4gQQdwRncC48IWUlugAAAABJRU5ErkJggg==)'
    );
  });
});

@@ -63,663 +63,8 @@
 ie';
-%0Aimport %7B mount, shallowMount %7D from '@vue/test-utils';%0A%0Aimport %7B Tooling %7D from '@@/helpers';%0A%0Adescribe('Blockie.vue', () =%3E %7B%0A  let localVue, i18n, wrapper, store;%0A  const address = '0xDECAF9CD2367cdbb726E904cD6397eDFcAe6068D';%0A%0A  beforeAll(() =%3E %7B%0A    const baseSetup = Tooling.createLocalVueInstance();%0A    localVue = baseSetup.localVue;%0A    i18n = baseSetup.i18n;%0A    store = baseSetup.store;%0A  %7D);%0A%0A  beforeEach(() =%3E %7B%0A    wrapper = shallowMount(Blockie, %7B%0A      localVue,%0A      i18n,%0A      store,%0A      attachToDocument: true,%0A      propsData: %7B%0A        address: address%0A      %7D%0A    %7D);%0A  %7D);%0A%0A  it('should render correct contents', () =%3E %7B%7D);%0A%7D);
 %0A%0Ade
@@ -154,33 +154,74 @@
 nst 
-wrapper = mount(Blockie, 
+Constructor = Vue.extend(Blockie);%0A    const vm = new Constructor(
 %7B%0A  
@@ -313,16 +313,25 @@
 %7D%0A    %7D)
+.$mount()
 ;%0A    ex
@@ -339,23 +339,14 @@
 ect(
-wrapper.element
+vm.$el
 .sty

fix travis tests 2