/** @jsx jsx */ import { jsx } from '../../../../__fixtures__/hyperscript'; import { isSelectionAtBlockEdge } from './isSelectionAtBlockEdge'; describe('isSelectionAtBlockEdge', () => { it('collpased on block start', () => { const input = ( foo ) as any; expect(isSelectionAtBlockEdge(input)).toBe('start'); }); it('collpased on block center', () => { const input = ( fo o ) as any; expect(isSelectionAtBlockEdge(input)).toBe(undefined); }); it('collpased on block end', () => { const input = ( foo ) as any; expect(isSelectionAtBlockEdge(input)).toBe('end'); }); it('expanded, focus on block start', () => { const input = ( fo o ) as any; expect(isSelectionAtBlockEdge(input)).toBe('start'); }); it('expanded, focus on block center', () => { const input = ( fo o ) as any; expect(isSelectionAtBlockEdge(input)).toBe(undefined); }); it('expanded, focus on block end', () => { const input = ( fo o ) as any; expect(isSelectionAtBlockEdge(input)).toBe('end'); }); });