Files
Homarr/src/components/AppAvatar.test.tsx
2023-07-21 18:08:40 +09:00

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();
});
});