Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 316 Bytes

html.md

File metadata and controls

15 lines (10 loc) · 316 Bytes

html()

Возвращает HTML-код DOM-узла Wrapperа в виде строки.

  • Возвращает: {string}

  • Пример:

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

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