test: Added button label display test

This commit is contained in:
Paul Valerie GOMA 2025-07-19 03:18:08 +02:00
parent 14d5b53df2
commit 0687b0395c

View File

@ -10,6 +10,9 @@ describe('VButton', () => {
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')
})
})