bigbuffet-rw/app/soapbox/schemas/__tests__/card.test.ts
2023-05-02 18:33:41 -05:00

11 lines
290 B
TypeScript

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);
});
});