Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SInputSelect test coverage 100% #191

Closed
kiaking opened this issue Jan 17, 2023 · 0 comments · Fixed by #193
Closed

Make SInputSelect test coverage 100% #191

kiaking opened this issue Jan 17, 2023 · 0 comments · Fixed by #193
Assignees

Comments

@kiaking
Copy link
Member

kiaking commented Jan 17, 2023

It's not yet there.

For testing value and modelValue prop, we have similar test in other input components like SInputNumber.

test('it accepts `value` prop', async () => {
  const wrapper = mount(SInputNumber, {
    props: { value: 1 }
  })

  expect(getInputValue(wrapper.find('.SInputNumber .input'))).toBe('1')
})

test('it sets value to `null` when nither `value` or `modelValue` is set', async () => {
  const wrapper = mount(SInputNumber)

  expect(getInputValue(wrapper.find('.SInputNumber .input'))).toBe('')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants