1234567891011121314151617181920212223242526272829 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import { renderComponent } from '#tests/support/components/index.ts'
- import CommonOrganizationAvatar from '../CommonOrganizationAvatar.vue'
- describe('CommonOrganizationAvatar', () => {
- it('renders avatar', async () => {
- const view = renderComponent(CommonOrganizationAvatar, {
- props: {
- entity: {
- name: 'Zammad Foundation',
- active: true,
- },
- },
- })
- expect(view.getByIconName('organization')).toBeInTheDocument()
- await view.rerender({
- entity: {
- name: 'Zammad Foundation',
- active: false,
- },
- })
- expect(view.getByIconName('inactive-organization')).toBeInTheDocument()
- })
- })
|