Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 275 Bytes

attributes.md

File metadata and controls

15 lines (10 loc) · 275 Bytes

attributes()

Returns Wrapper DOM node attribute object.

  • Returns: {[attribute: string]: any}

  • Example:

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

const wrapper = mount(Foo)
expect(wrapper.attributes().id).toBe('foo')