✅ test: Added button label display test
This commit is contained in:
parent
14d5b53df2
commit
0687b0395c
|
@ -10,6 +10,9 @@ describe('VButton', () => {
|
||||||
title: 'button'
|
title: 'button'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// Check that the props label has gone through
|
||||||
|
expect(wrapper.props('label')).toBe('button label')
|
||||||
|
// Checks that the rendering contains the expected value
|
||||||
expect(wrapper.text()).toContain('button label')
|
expect(wrapper.text()).toContain('button label')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user