Skip to content

Commit 8595da6

Browse files
Fix decorate.test.js
1 parent 64bf208 commit 8595da6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dev/tests/js/jasmine/tests/lib/mage/decorate.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,9 @@ define([
192192
it('Check error message', function () {
193193
var $list = $('#' + listId);
194194

195-
spyOn(jQuery, 'error');
195+
spyOn($, 'error');
196196
$list.decorate('customMethod');
197-
198-
expect(jQuery.error).toHaveBeenCalledWith('Method customMethod does not exist on jQuery.decorate');
197+
expect($.error).toHaveBeenCalledWith('Method customMethod does not exist on jQuery.decorate');
199198
});
200199
});
201200
});

0 commit comments

Comments
 (0)