Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 260 Bytes

text.md

File metadata and controls

16 lines (11 loc) · 260 Bytes

text()

Returns text content of Wrapper.

  • Returns: {string}

  • Example:

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

const wrapper = mount(Foo)
expect(wrapper.text()).toBe('bar')