bigbuffet-rw/app/soapbox/normalizers/__tests__/card-test.js
2022-03-16 21:47:58 -05:00

14 lines
373 B
JavaScript

import { Record as ImmutableRecord } from 'immutable';
import { normalizeCard } from '../card';
describe('normalizeCard()', () => {
it('adds base fields', () => {
const card = {};
const result = normalizeCard(card);
expect(ImmutableRecord.isRecord(result)).toBe(true);
expect(result.type).toEqual('link');
expect(result.url).toEqual('');
});
});