This repository was archived by the owner on May 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments