Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

488 B
Raw Blame
import { expect, test } from 'vitest';
import { render, screen } from '@/test/render';
import { Empty } from './Empty';

test('renders the default empty state message', () => {
  render(<Empty />);

  expect(screen.getByText('No data available.')).toBeInTheDocument();
});

test('renders a custom empty state message', () => {
  render(<Empty message="Nothing matched the current filters." />);

  expect(screen.getByText('Nothing matched the current filters.')).toBeInTheDocument();
});