svgl/src/index.test.ts
2023-03-20 10:58:30 +00:00

15 lines
433 B
TypeScript

import { describe, it, expect } from 'vitest';
import { svgs } from './data/svgs';
describe('Get svgs by category', () => {
it('should have a category named "Social"', () => {
expect(svgs.find((svg) => svg.category === 'Social')).toBeDefined();
});
});
describe('Get a specific svg', () => {
it('should have a svg named "Discord"', () => {
expect(svgs.find((svg) => svg.title === 'Discord')).toBeDefined();
});
});