Skip to content

Commit ab21724

Browse files
MAGETWO-91812: [Magento Cloud] - Issue with polluted database when updating product attributes through API
1 parent c3fa5b3 commit ab21724

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form/ui-select.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ define([
88
'underscore',
99
'uiRegistry',
1010
'squire',
11-
'ko',
12-
'jquery'
13-
], function (_, registry, Squire, ko, $) {
11+
'ko'
12+
], function (_, registry, Squire, ko) {
1413
'use strict';
1514

1615
describe('Magento_Ui/js/form/element/ui-select', function () {
17-
var obj, originaljQueryAjax,
16+
var obj, jq, originaljQueryAjax,
1817
injector = new Squire(),
1918
mocks = {
2019
'Magento_Ui/js/lib/registry/registry': {
@@ -37,8 +36,9 @@ define([
3736
injector.mock(mocks);
3837
injector.require([
3938
'Magento_Ui/js/form/element/ui-select',
39+
'jquery',
4040
'knockoutjs/knockout-es5'
41-
], function (Constr) {
41+
], function (Constr, $) {
4242
obj = new Constr({
4343
provider: 'provName',
4444
name: '',
@@ -52,13 +52,13 @@ define([
5252
obj.value = ko.observableArray([]);
5353
obj.cacheOptions.plain = [];
5454
originaljQueryAjax = $.ajax;
55-
55+
jq = $;
5656
done();
5757
});
5858
});
5959

6060
afterEach(function () {
61-
$.ajax = originaljQueryAjax;
61+
jq.ajax = originaljQueryAjax;
6262
injector.clean();
6363
});
6464

0 commit comments

Comments
 (0)