metadata-based-explorer1
Version:
Box UI Elements
25 lines (18 loc) • 666 B
JavaScript
import React from 'react';
import EnvelopeTrophyState from '../EnvelopeTrophyState';
describe('icons/states/EnvelopeTrophyState', () => {
const getWrapper = (props = {}) => shallow(<EnvelopeTrophyState {...props} />);
test('should correctly render default component', () => {
const wrapper = getWrapper();
expect(wrapper).toMatchSnapshot();
});
test('should correctly render component with specified props', () => {
const wrapper = getWrapper({
className: 'test',
height: 400,
title: 'title',
width: 400,
});
expect(wrapper).toMatchSnapshot();
});
});