import * as React from 'react'; import { mount } from 'enzyme'; import { Sticky } from '../'; export type Position = 'top' | 'bottom'; const theme = { footerStyle: 'footerStyle', sticky: 'sticky', headerSticky: 'headerSticky', footerSticky: 'footerSticky', }; describe('', () => { describe('when default props are provided', () => { it('should have default elements with StickyHeader', () => { const subject = mount( Batman is a
fictional
superhero
who appears
in American
comic books
published by
DC Comics.
The character
was created by
artist Bob Kane
and writer Bill
Finger, and first
appeared in Detective
Comics #27
); console.log(subject.html()); expect(subject.find('div').exists()).toBeTruthy(); expect(subject.find('div').length).toBe(1); }); }); describe('when default props are provided', () => { it('should have default elements with StickyFooter', () => { const subject = mount( Batman is a
fictional
superhero
who appears
in American
comic books
published by
DC Comics.
The character
was created by
artist Bob Kane
and writer Bill
Finger, and first
appeared in Detective
Comics #27
); expect(subject.find('div').exists()).toBeTruthy(); expect(subject.find('div').length).toBe(1); }); }); });