import React from 'react'; import * as renderer from 'react-test-renderer'; import { Text, typographyTextSize, typographyTextTags } from '..'; import { typographyColor } from '../../types'; import { Button } from '../../../../button/v1'; describe('Text', () => { typographyTextSize.map((size) => { test(size, () => { const tree = renderer.create( {size} ).toJSON(); expect(tree).toMatchSnapshot(); }); }); }); describe('Text', () => { typographyTextTags.map((tag) => { test(tag, () => { const tree = renderer.create( {tag} ).toJSON(); expect(tree).toMatchSnapshot(); }); }); }); describe('Text', () => { typographyColor.map((color) => { test(color, () => { const tree = renderer.create( {color} ).toJSON(); expect(tree).toMatchSnapshot(); }); }); }); describe('Component as prop', () => { typographyColor.map((color) => { test(color, () => { const tree = renderer.create( {color} ).toJSON(); expect(tree).toMatchSnapshot(); }); }); });