pleroma/app/soapbox/schemas/__tests__/card.test.ts

12 lines
290 B
TypeScript
Raw Normal View History

2023-05-02 16:33:41 -07:00
import { cardSchema } from '../card';
describe('cardSchema', () => {
it('adds base fields', () => {
const card = { url: 'https://soapbox.test' };
const result = cardSchema.parse(card);
expect(result.type).toEqual('link');
expect(result.url).toEqual(card.url);
});
});