import shouldPasteResources from './shouldPasteResources'; describe('shouldPasteResources', () => { test.each([ [ '', '', [], true, ], [ 'some text', '', [], false, ], [ '', 'some html', [], false, ], [ '', '', [], false, ], [ 'some text', '', [], false, ], [ '', '

Some text

', [], false, ], ])('should tell if clipboard content should be processed as resources', (pastedText, pastedHtml, resourceMds, expected) => { const actual = shouldPasteResources(pastedText, pastedHtml, resourceMds); expect(actual).toBe(expected); }); });