We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af343c8 commit 30b7a25Copy full SHA for 30b7a25
1 file changed
src/sidebar/components/Annotation/test/ThumbnailDescriptionInput-test.js
@@ -26,6 +26,14 @@ describe('ThumbnailDescriptionInput', () => {
26
assert.calledWith(onEdit, 'new description');
27
});
28
29
+ it('sets maxlength attribute to 5000', () => {
30
+ const wrapper = mount(<ThumbnailDescriptionInput description="" />, {
31
+ connected: true,
32
+ });
33
+
34
+ assert.equal(wrapper.find('input').prop('maxlength'), 5000);
35
36
37
it('displays alt-text info popover when info button is clicked', () => {
38
const wrapper = mount(<ThumbnailDescriptionInput description="foo bar" />, {
39
connected: true,
0 commit comments