Skip to content

Commit 0dd4774

Browse files
committed
MAGETWO-89670: Introduce Product Link type
- fix js static/unit tests
1 parent 66d27a2 commit 0dd4774

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/GetSelectedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ public function testExecuteNonExistingSearchKey() : void
4040
$responseBody = $this->getResponse()->getBody();
4141
$this->assertContains('[]', $responseBody);
4242
}
43-
}
43+
}

dev/tests/js/jasmine/tests/app/code/Magento/Catalog/adminhtml/js/components/product-ui-select-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright © Magento, Inc. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5-
5+
/*eslint max-nested-callbacks: 0*/
66
define([
77
'underscore',
88
'uiRegistry',

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form/client.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ define([
1919
name: '',
2020
index: ''
2121
}),
22-
jQueryMethods = {};
22+
jQueryMethods = {},
23+
ajax = $.ajax;
2324

2425
window.FORM_KEY = 'magentoFormKey';
2526

@@ -41,6 +42,7 @@ define([
4142
_.each(jQueryMethods, function (value, key) {
4243
$.fn[key] = value;
4344
});
45+
$.ajax = ajax;
4446
});
4547

4648
describe('"save" method', function () {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,7 @@ define([
666666
expect(obj.processRequest()).toBeUndefined();
667667

668668
ajaxRequest(successfulAjaxResponse);
669-
670-
expect(obj.options()).toEqual([successfulAjaxResponse.options['2053']]);
669+
expect(JSON.stringify(obj.options())).toEqual(JSON.stringify([successfulAjaxResponse.options['2053']]));
671670
});
672671
});
673672
});

0 commit comments

Comments
 (0)