old_contents: import index from '~/components/settings/Account'
  import { shallowMount } from 'helper'
  
  describe('settings/Account/index component', () => {
    let wrapper, $toast
    beforeEach(() => {
      wrapper = shallowMount(index, {
        propsData: {
          account: {
            name: 'foo',
            content: {
              markdown_text: 'bar'
            },
            timezone: '',
            locale: ''
          }
        },
        stubs: {
          avatar: true,
          cover: true
        }
      })
      $toast = wrapper.vm.$toast
    })
    describe('success', () => {
      test('show success toast', async () => {
        wrapper.vm.$axios = {
          $patch: jest.fn()
        }
        await wrapper.vm.update()
        expect($toast.success).toHaveBeenCalled()
        expect($toast.error).not.toHaveBeenCalled()
      })
    })
    describe('error', () => {
      test('show error toast', async () => {
        wrapper.vm.$axios = {
          $patch: jest.fn(() => {
            throw new Error()
          })
        }
        await wrapper.vm.update()
        expect($toast.success).not.toHaveBeenCalled()
        expect($toast.error).toHaveBeenCalled()
      })
    })
  })
  
new_contents: import index from '~/components/settings/Account'
  import { shallowMount } from 'helper'
  
  describe('settings/Account/index component', () => {
    let wrapper, $toast
    beforeEach(() => {
      wrapper = shallowMount(index, {
        propsData: {
          account: {
            name: 'foo',
            content: {
              markdown_text: 'bar'
            },
            timezone: '',
            locale: ''
          }
        },
        stubs: {
          avatar: '<div />',
          cover: '<div />'
        }
      })
      $toast = wrapper.vm.$toast
    })
    describe('success', () => {
      test('show success toast', async () => {
        wrapper.vm.$axios = {
          $patch: jest.fn()
        }
        await wrapper.vm.update()
        expect($toast.success).toHaveBeenCalled()
        expect($toast.error).not.toHaveBeenCalled()
      })
    })
    describe('error', () => {
      test('show error toast', async () => {
        wrapper.vm.$axios = {
          $patch: jest.fn(() => {
            throw new Error()
          })
        }
        await wrapper.vm.update()
        expect($toast.success).not.toHaveBeenCalled()
        expect($toast.error).toHaveBeenCalled()
      })
    })
  })
  
subject: Fix stubs