import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import SkillsValidation from './SkillsValidation';
describe('SkillsValidation', () => {
describe('given no skillsCategoryRadar prop', () => {
it('should show the no-data overlay', () => {
render();
expect(screen.getByText('No Data Exists')).toBeInTheDocument();
});
});
describe('given an empty skillsCategoryRadar array', () => {
it('should show the no-data overlay', () => {
render();
expect(screen.getByText('No Data Exists')).toBeInTheDocument();
});
});
describe('given data with all undefined values', () => {
it('should show the no-data overlay', () => {
render(
,
);
expect(screen.getByText('No Data Exists')).toBeInTheDocument();
});
});
describe('given data with all zero values', () => {
it('should show the no-data overlay', () => {
render(
,
);
expect(screen.getByText('No Data Exists')).toBeInTheDocument();
});
});
describe('given data with actual values', () => {
it('should not show the no-data overlay', () => {
render(
,
);
expect(screen.queryByText('No Data Exists')).not.toBeInTheDocument();
});
});
});