2023-03-14 21:08:22 +00:00
|
|
|
import { describe, it, expect } from 'vitest';
|
2023-03-20 10:58:30 +00:00
|
|
|
import { svgs } from './data/svgs';
|
2023-03-14 21:08:22 +00:00
|
|
|
|
2023-03-20 10:58:30 +00:00
|
|
|
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();
|
2023-03-15 11:29:15 +00:00
|
|
|
});
|
2023-03-14 21:08:22 +00:00
|
|
|
});
|