Skip to content

Commit

Permalink
Silence unhandled rejection warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tilgovi committed Sep 25, 2015
1 parent 53fe091 commit ec76eb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/spec/ui/editor_spec.js
Expand Up @@ -132,7 +132,7 @@ describe('ui.editor.Editor', function () {
ann = {
text: "Blue whales are large."
};
plugin.load(ann);
plugin.load(ann)['catch'](function () {});
});

it('should hide the widget', function () {
Expand Down Expand Up @@ -295,7 +295,7 @@ describe('ui.editor.Editor', function () {
});

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

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

0 comments on commit ec76eb2

Please sign in to comment.