Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Romain Gaillard
Added: Oct 6, 2021 7:28 AM
Modified: Oct 8, 2021 4:25 PM
Views: 265
Tags: styles tu
  1. import { itRendersStyledCorrectly } from '@cdiscount/jest-utils';
  2. import React from 'react';
  3.  
  4. import { FreeLabel, Link, ModalContent, Text } from '../styles';
  5.  
  6. describe('FreeShipping styles', () => {
  7.   itRendersStyledCorrectly(<Link href="#nil" />);
  8.   itRendersStyledCorrectly(<FreeLabel />);
  9.   itRendersStyledCorrectly(<Text />);
  10.   itRendersStyledCorrectly(<ModalContent />);
  11. });
  12.