UNPKG

metadata-based-explorer1

Version:
23 lines (18 loc) 670 B
import React from 'react'; import ClassifiedBadge from '../ClassifiedBadge'; describe('features/classification/ClassifiedBadge', () => { const getWrapper = (props = {}) => shallow(<ClassifiedBadge {...props} />); test('should render a classified badge with tooltip disabled', () => { const wrapper = getWrapper({ name: 'Confidential', }); expect(wrapper).toMatchSnapshot(); }); test('should render a classified badge with a tooltip', () => { const wrapper = getWrapper({ name: 'Confidential', tooltipText: 'fubar', }); expect(wrapper).toMatchSnapshot(); }); });