Skip to content

Commit 30b7a25

Browse files
karenrasmussensanticomp2014
authored andcommitted
Address PR comments
1 parent af343c8 commit 30b7a25

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/sidebar/components/Annotation/test/ThumbnailDescriptionInput-test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ describe('ThumbnailDescriptionInput', () => {
2626
assert.calledWith(onEdit, 'new description');
2727
});
2828

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+
2937
it('displays alt-text info popover when info button is clicked', () => {
3038
const wrapper = mount(<ThumbnailDescriptionInput description="foo bar" />, {
3139
connected: true,

0 commit comments

Comments
 (0)