'use strict';
import { ADD_FONTS, ADD_FONT, addCustomFont, addCustomFonts } from '../Actions';

describe('Reducers/DesignView', () => {
    test('addCustomFont creates the correct action', () => {
        const customFont = { name: 'Calibri', family: 'Calibri', bold: true };
        expect(addCustomFont(customFont)).toEqual({
            type: ADD_FONT,
            data: customFont,
        });
    });
    test('addCustomFonts creates the correct action', () => {
        const customFonts = [{ name: 'Calibri', family: 'Calibri', bold: true }];
        expect(addCustomFonts(customFonts)).toEqual({
            type: ADD_FONTS,
            data: customFonts,
        });
    });
});
