Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 310 Bytes

html.md

File metadata and controls

16 lines (11 loc) · 310 Bytes

html()

Wrapper DOM ノードの HTML を文字列として返します。

  • 戻り値: {string}

  • 例:

import { mount } from '@vue/test-utils'
import { expect } from 'chai'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
expect(wrapper.html()).toBe('<div><p>Foo</p></div>')