CommonTab.spec.ts 538 B

123456789101112131415161718192021
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { describe } from 'vitest'
  3. import { renderComponent } from '#tests/support/components/index.ts'
  4. import CommonTab from '#desktop/components/CommonTabManager/CommonTab.vue'
  5. describe('CommonTab', () => {
  6. it('renders default slot', () => {
  7. const wrapper = renderComponent(CommonTab, {
  8. slots: {
  9. default: () => 'foo',
  10. },
  11. })
  12. expect(wrapper.getByText('foo')).toBeInTheDocument()
  13. })
  14. // :TODO visual regression test?
  15. })