import {htmlIsPlainTextDragged} from './htmlIsPlainTextDragged'; it('should detect plain text dragged from browser', () => { const html = ` Plain text dragged `; expect(htmlIsPlainTextDragged(html)).toBe(true); }); it('should not detect plain text if it contains a link', () => { const html = ` link `; expect(htmlIsPlainTextDragged(html)).toBe(false); });