EvalueTonSavoir/client/src/__tests__/components/GiftTemplate/constants/theme.test.tsx
2024-03-29 20:08:34 -04:00

16 lines
540 B
TypeScript

import '@testing-library/jest-dom';
import { theme } from '../../../../components/GiftTemplate/constants/theme';
import { colors } from '../../../../components/GiftTemplate/constants/colors';
describe('Theme', () => {
test('returns correct light color', () => {
const lightColor = theme('light', 'gray500', 'black500');
expect(lightColor).toBe(colors.gray500);
});
test('returns correct dark color', () => {
const darkColor = theme('dark', 'gray500', 'black500');
expect(darkColor).toBe(colors.black500);
});
});