Project

General

Profile

Download (471 Bytes) Statistics
| Branch: | Tag: | Revision:
jest.unmock('./NotificationDrawerTitle');

import React from 'react';
import { shallow } from 'enzyme';
import NotificationDrawerTitle from './NotificationDrawerTitle';

function setup(title) {
return shallow(<NotificationDrawerTitle text={title} />);
}

describe('NotificationDrawerTitle', () => {
it('displays title', () => {
const wrapper = setup('Drawer Title');
const title = wrapper.find('h3');

expect(title.text()).toBe('Drawer Title');
});
});
(8-8/17)