Skip to content

Commit bdb4acb

Browse files
committed
Test if passing array in pasted content
1 parent c988fc1 commit bdb4acb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/__test__/plugin-test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,14 @@ describe('draft-js-markdown-shortcuts-plugin', () => {
395395
expect(subject()).to.equal('not-handled');
396396
});
397397
});
398+
describe('non-string value in clipboard', () => {
399+
beforeEach(() => {
400+
pastedText = {};
401+
});
402+
it('returns not-handled', () => {
403+
expect(subject()).to.equal('not-handled');
404+
});
405+
});
398406
describe('pasted just text with new line code', () => {
399407
beforeEach(() => {
400408
pastedText = 'hello\nworld';

0 commit comments

Comments
 (0)