nexxtway/react-rainbow

View on GitHub
src/components/Card/__test__/headerTitle.spec.js

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import { mount } from 'enzyme';
import HeaderTitle from '../headerTitle';

describe('<HeaderTitle/>', () => {
    it('should set the title passed', () => {
        const component = mount(<HeaderTitle title="my title" />);
        expect(component.text()).toBe('my title');
    });
});