mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +01:00
15 lines
390 B
TypeScript
15 lines
390 B
TypeScript
import { cleanup, render, screen } from '@testing-library/react';
|
|
import { afterEach, describe, expect, it } 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();
|
|
});
|
|
});
|