mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
import { render, screen, cleanup } from '@testing-library/react';
|
|
import { describe, expect, it, afterEach } from 'vitest';
|
|
import { AppAvatar } from './AppAvatar';
|
|
|
|
describe('AppAvatar', () => {
|
|
afterEach(cleanup);
|
|
|
|
it('display placeholder when no url', () => {
|
|
render(<AppAvatar iconUrl="" color="blue" />);
|
|
|
|
expect(screen.getByTestId('app-avatar')).toBeDefined();
|
|
});
|
|
});
|