Skip to content

Commit

Permalink
test(label): fix test about for attr
Browse files Browse the repository at this point in the history
  • Loading branch information
14nrv committed Oct 24, 2020
1 parent c72bab3 commit 847a83c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Fields/Label.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ describe('Label', () => {
expect('label').not.toBeADomElement()
})

it('has a for attribute', async () => {
it('has a for attribute by default', () => {
expect('label').toHaveAttribute('for', 'the-label')
})

it('has a custom for attribute', async () => {
const ATTR_FOR = 'a-custom-for-attribute'

await wrapper.setProps({
item: {
label: LABEL,
Expand Down

0 comments on commit 847a83c

Please sign in to comment.