Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit ec76eb2

Browse files
committed
Silence unhandled rejection warnings in tests
1 parent 53fe091 commit ec76eb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/spec/ui/editor_spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('ui.editor.Editor', function () {
132132
ann = {
133133
text: "Blue whales are large."
134134
};
135-
plugin.load(ann);
135+
plugin.load(ann)['catch'](function () {});
136136
});
137137

138138
it('should hide the widget', function () {
@@ -295,7 +295,7 @@ describe('ui.editor.Editor', function () {
295295
});
296296

297297
it('should cancel editing when the editor cancel button is clicked', function () {
298-
plugin.load(ann);
298+
plugin.load(ann)['catch'](function () {});
299299
plugin.element.find('textarea').val('Turtles with bandanas');
300300
plugin.element.find('.annotator-cancel').click();
301301
assert.equal(ann.text, 'Turtles with armbands');
@@ -324,7 +324,7 @@ describe('ui.editor.Editor', function () {
324324
});
325325

326326
it('should cancel editing when the user hits <Esc> in the main textarea', function () {
327-
plugin.load(ann);
327+
plugin.load(ann)['catch'](function () {});
328328
plugin.element.find('textarea').val('Turtles with bandanas').trigger({
329329
type: 'keydown',
330330
which: 27

0 commit comments

Comments
 (0)